[RFA] A missing ATTRIBUTE_UNUSED

Daniel Jacobowitz drow@mvista.com
Tue Jan 29 11:45:00 GMT 2002


On Tue, Jan 29, 2002 at 01:51:38PM -0500, Andrew Cagney wrote:
> >What's the policy on functions that conditionally use their arguments?  I
> >couldn't find another example offhand, so I don't know if this patch is
> >right.
> >
> >With this one I can do most of a -Werror build again.
> 
> 
> Have a look in BFD :-)
> 
> BINUTILS uses ATTRIBUTE_UNUSED.  GDB uses -Wno-unused-params.

This is conditionally unused, according to conditional compilation;
that's what I couldn't find an example of.  I think it's fine, though.

I understand GDB's reason for not using it, and I think that perhaps we
should instead have pushed for new attributes that provide the
functionality GDB wants.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list