This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC src/configure* - "CFLAGS=-g -O" instead of "CFLAGS=... -Wall"



> 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...

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]