-Werror now enabled by default

Joseph Myers joseph@codesourcery.com
Thu Dec 11 14:30:00 GMT 2014


On Thu, 11 Dec 2014, Stefan Liebler wrote:

> Removing the inline from maybe_swap_uint32 in locfile.h leads to:
> gcc ../locale/programs/linereader.c -c ...
> In file included from ../locale/programs/linereader.c:35:0:
> ../locale/programs/locfile.h:89:1: error: ‘maybe_swap_uint32’ defined but not
> used [-Werror=unused-function]
>  maybe_swap_uint32 (uint32_t value)
>  ^
> cc1: all warnings being treated as errors

So use __attribute__ ((unused)) to avoid that error.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list