This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: -Werror now enabled by default
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 10 Dec 2014 16:22:51 +0000
- Subject: Re: -Werror now enabled by default
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1412100115170 dot 18857 at digraph dot polyomino dot org dot uk> <mvmiohjsci8 dot fsf at hawking dot suse dot de>
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