This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ARI] Status of ATTRIBUTE_UNUSED in gdb sources


> >   Did you really use -Wunused-param to catch this,
> > or is it just a case where it could have been useful 
> > to have this warning?
> 
> I haven't tried to use -Wunused-param; it was spotted just by eyes.

What I think Jan and I wanted to say is that -Wunused-param is not
useless; but that it comes at too high a price for too little gain.
The example that Jan provided was meant to be a real-life example
where the warning would have been useful (assuming that the high
noise/signal ration haven't conditioned us to simply silence it without
looking further).

-- 
Joel


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