This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: suggest gcc option -Wallall to add absolutely every -W* option
- To: amylaar at cygnus dot co dot uk (Joern Rennecke)
- Subject: Re: suggest gcc option -Wallall to add absolutely every -W* option
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Tue, 17 Nov 98 15:34:04 PST
- Cc: oliva at dcc dot unicamp dot br, vonbrand at inf dot utfsm dot cl, wheeler at ipl dot rpi dot edu, egcs at cygnus dot com
> Hmmm, how about renaming -Wall to -Wgnu ?
> It really contains some warnings that make only sense when using
> formatting according to the GNU coding standard.
Sorry, but that's not a serious option. The world relies on -Wall working
much as it works now; many projects, both freeware and otherwise, have a
standard that -Wall runs clean. This means that only warnings that can be
silenced without degrading code quality go into -Wall. Furthermore, we
can't change the names of switches that people have been using for years.
(Seriously: please don't ask for changes to egcs that have the effect
of breaking half the makefiles on the planet).
I am curious as to what warnings you think make sense only for formatting
using the GNU coding standard. If you're talking about -Wparentheses
and such, they do catch many accidental errors, like
if (a = 0) ...
rather than
if (a == 0)
and this is worth asking people to put in extra parenths in some cases
to be sure that they mean what the C language says.