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


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

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