This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: -W* rules for engagement?
Donn Terry wrote:
> To be more realistic: how about a goal that 5.1 has a minimum number
> of warnings, and provide a periodic scorecard on how it's going.
> (And maybe 1-line comments for the ones that are painful to fix any
> other way, so at least folks reviewing warnings know what to expect.)
One additional thing to note. By default I build GDB cross debuggers
with:
--enable-build-warnings=-Werror,-Wimplicit,-Wreturn-type,-Wcomment,-Wtrigraphs,-Wformat,-Wparentheses,-Wpointer-arith,-Woverloaded-virtual
That line is then broken down into Makefile.in:WERROR_CFLAGS (-Werror)
and Makefile.in:WARN_CFLAGS (the rest). All but one or two files are
compiled with both arguments (look for WARN_CFLAGS in Makefile.in)
So for many host/target combinations it is already there.
Andrew