This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [ARI] Status of ATTRIBUTE_UNUSED in gdb sources
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>, gdb at sourceware dot org, gdb-patches at sourceware dot org
- Date: Tue, 4 May 2010 18:22:33 +0200
- Subject: Re: [ARI] Status of ATTRIBUTE_UNUSED in gdb sources
- References: <002701caeb90$894ad040$9be070c0$@muller@ics-cnrs.unistra.fr> <20100504153752.GJ2768@adacore.com>
On Tue, 04 May 2010 17:37:52 +0200, Joel Brobecker wrote:
> make sense unless we use -Wunused-param. And I really don't see how
> this switch could help us increase code quality - only extra hassle
> trying to silence warnings.
While I agree ATTRIBUTE_UNUSED is more hassle than benefit I have to bring up
recently -Wunused-param would catch a real bug in an Archer patch
(missing "bp->thread = tp->num;"):
http://sourceware.org/ml/archer/2010-q2/msg00017.html
Regards,
Jan