This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: comparisons..
- To: gcc at gcc dot gnu dot org
- Subject: Re: comparisons..
- From: Russ Allbery <rra at stanford dot edu>
- Date: 13 Jul 2000 15:14:48 -0700
- Organization: The Eyrie
- References: <200007131609.JAA17272@racerx.synopsys.com>
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/>