-Werror now enabled by default

Joseph Myers joseph@codesourcery.com
Wed Dec 10 16:22:00 GMT 2014


On Wed, 10 Dec 2014, Andreas Schwab wrote:

> programs/locfile.h:85:1: error: inlining failed in call to 'maybe_swap_uint32.part.1': call is unlikely and code size would grow [-Werror=inline]
>  maybe_swap_uint32 (uint32_t value)
>  ^
> cc1: error: called from here [-Werror=inline]

For such -Winline errors, removing "inline" would typically be an 
appropriate fix (unless we think it's important to inline the function, in 
which case always_inline is appropriate).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list