This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] accept __null as sentinel
matz@suse.de (Michael Matz) wrote on 30.04.05 in <Pine.LNX.4.58.0504300158490.20714@wotan.suse.de>:
> This indicates that you never had to deal with more than a couple sources,
> whose initial author is long dead ;-) This would shift needless
> maintenance work (and "adding a cast at each call site" can be quite much)
> on the shoulders of maintainers. If the author is interested in
> portability, well, there's -pedantic. Let's keep -Wall usable and not
> force people to do "-W -Wall -Wno-not-this-one -Wno-thats-dumb-too
> -Wno-cant-break-anything" to get at the usefull warnings.
This reminds me that in some situations, it would be really nice to have a
-Wuser-normal warning set that's defined in $PWD/.gccrc under a tag
"normal", or something similar.
I expect it's not entirely uncommon that people go through a complete list
of warning options and try which of those seem to generate sensible output
for their project, and which don't, and then use those on pretty much all
files - which leads to extremely long and hard-to-read command lines.
Also, there would often be some files that, for one reason or another,
need a different set from that, so having more than one alias might be
useful.
MfG Kai