This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: suggest gcc option -Wallall to add absolutely every -W* option



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




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