This is the mail archive of the
newlib@sourceware.cygnus.com
mailing list for the newlib project.
Re: RFC src/configure* - "CFLAGS=-g -O" instead of "CFLAGS=... -Wall"
- To: alan at linuxcare dot com dot au
- Subject: Re: RFC src/configure* - "CFLAGS=-g -O" instead of "CFLAGS=... -Wall"
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Wed, 5 Apr 2000 10:09:38 -0400 (EDT)
- CC: ian at zembu dot com, ac131313 at cygnus dot com, binutils at sourceware dot cygnus dot com, gdb-patches at sourceware dot cygnus dot com, newlib at sourceware dot cygnus dot com
- References: <Pine.LNX.4.21.0004051120170.15948-100000@front.linuxcare.com.au>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> While you're at it Andrew, it would be nice if WARN_CFLAGS included
> -Wno-format when compiling with nls enabled (but not with nls
> disabled). With --enable-nls, real warnings are hidden amongst reams of
> "warning: format not a string literal, argument types not checked" if you
> are using a recent gcc.
It strikes me that the Right Thing would be to convince the GCC
maintainers to make that "not a string literal" warning be controlled
by a separate -Wxxx option. Use of expressions for format specifiers
is a very old C tradition, and IMHO it just doesn't make sense to
start whining about all that code just because the compiler lacks the
wizdom to check its validity.
I tried some time ago to convince the GCC maintainers, but failed.
(Heck, even Ulrich Drepper failed, so I'm in a very good company ;-).
Perhaps if the entire GDB maintenance team bugged them, they would
reconsider...