This is the mail archive of the
gdb-patches@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: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: "'Joel Brobecker'" <brobecker at adacore dot com>, gdb at sourceware dot org, gdb-patches at sourceware dot org
- Date: Tue, 4 May 2010 23:14:26 +0200
- Subject: Re: [ARI] Status of ATTRIBUTE_UNUSED in gdb sources
- References: <002701caeb90$894ad040$9be070c0$@muller@ics-cnrs.unistra.fr> <20100504153752.GJ2768@adacore.com> <20100504162233.GA1910@host0.dyn.jankratochvil.net> <005201caebcc$9ea723d0$dbf56b70$@muller@ics-cnrs.unistra.fr>
On Tue, 04 May 2010 22:58:58 +0200, Pierre Muller wrote:
> > -----Message d'origine-----
> > DeÂ: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] De la
> > part de Jan Kratochvil
> > 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
>
> 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.
Regards,
Jan