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: Richard Earnshaw <rearnsha at arm dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Thu, 11 Dec 2014 15:15:11 +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> <54885181 dot 8010409 at arm dot com> <alpine dot DEB dot 2 dot 10 dot 1412101524510 dot 32166 at digraph dot polyomino dot org dot uk> <5489AFF1 dot 5050705 at arm dot com>
On Thu, 11 Dec 2014, Richard Earnshaw wrote:
> > Why isn't the "CFLAGS-tst-mbswcs1.c = -Wno-format" in localedata/Makefile
> > working for you?
> >
>
> It turns out this is due to some security hardening nonsense in Ubuntu
> 14.04, which manages to override the user's preferences in this respect.
> I'm trying to get the Ubuntu folks to fix their compiler.
>
> An alternative approach might be to add -Wno-error=format. And
> -Wno-error=format-extra-args when building stdio-common/tstdiomisc.c .
Well, if an explicit -Wno-format doesn't work, that's a clear compiler
bug. But we want to move to disabling warnings within C files using
DIAG_* macros anyway, instead of command-line options, so if that works
where the command-line options don't then that's also a sufficient fix.
(And if the warnings can be fixed by changing the test - if they're
nothing to do with what it's intended to test - then such test changes
make sense to replace -Wno- options, as in my patch
<https://sourceware.org/ml/libc-alpha/2014-12/msg00292.html> for the
present case.)
--
Joseph S. Myers
joseph@codesourcery.com