Dan Sugalski <[EMAIL PROTECTED]> writes:
> This is jogging my memory some. Jarkko passed on his "gcc switch list
> from hell" to me a while back--let me dig it out and add them in.
> This is *not* going to be pretty for the next few days...
Here are some notes on what I've managed to live with:
## Warnings to use with gcc. Default to including all of the generally
## useful warnings unless there's something that makes them unsuitable. In
## particular, the following warnings are *not* included:
##
## -ansi Requires messing with feature test macros.
## -Wconversion Too much unsigned to signed noise.
## -Wredundant-decls Too much noise from system headers.
## -Wtraditional We assume ANSI C, so these aren't interesting.
## -Wundef Too much noise from system macros.
##
## Some may be worth looking at again once a released version of gcc doesn't
## warn on system headers. The warnings below are in the same order as
## they're listed in the gcc manual. We suppress warnings for long long
## because of lib/snprintf.c; all uses of long long should be hidden behind
## #ifdef HAVE_LONG_LONG.
WARNINGS = -pedantic -Wall -W -Wshadow -Wpointer-arith \
-Wbad-function-cast -Wcast-qual -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wnested-externs -Wno-long-long
The comment is a little dated, as I believe gcc 3.0 no longer warns on
system headers, so -Wredundant-decls possibly could get pulled back in.
-Wundef is a style thing.
--
Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>