comparisons..
Russ Allbery
rra@stanford.edu
Thu Jul 13 15:14:00 GMT 2000
Joe Buck <jbuck@racerx.synopsys.com> writes:
> Andrew Morton wrote:
>> Please, give us more granular control over the -W warnings!!
> Could you be more specific? Which warnings do you want to enable and
> suppress? There's already a large set of -Wxxx and -Wno-xxx flags.
> What's missing?
The one that I've specifically noticed is the following: I want most of
the -W warnings and I want all of the -Wall warnings, but I specifically
don't want warnings about unused function parameters for some code
(particularly code that uses a large table of functions to handle
commands, some of which don't care about their arguments) since it's often
too much bother to tag all the unused parameters with gcc-specific
attributes. I *do* want warnings about unused variables.
-Wall -W gives warnings about both unused variables and unused function
parameters. -Wall -W -Wno-unused suppresses both. I can't find a more
finely grained knob to turn.
(Apologies if this is already fixed in the mainline.)
--
Russ Allbery (rra@stanford.edu) < http://www.eyrie.org/~eagle/ >
More information about the Gcc
mailing list