[ARI] Status of ATTRIBUTE_UNUSED in gdb sources

Joel Brobecker brobecker@adacore.com
Wed May 5 14:40:00 GMT 2010


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



More information about the Gdb mailing list