public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: binutils@sources.redhat.com
Subject: Re: [RFA] A missing ATTRIBUTE_UNUSED
Date: Tue, 29 Jan 2002 11:45:00 -0000	[thread overview]
Message-ID: <20020129141659.A2426@nevyn.them.org> (raw)
In-Reply-To: <3C56EF3A.1080302@cygnus.com>

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

  reply	other threads:[~2002-01-29 19:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-29  9:13 Daniel Jacobowitz
2002-01-29 11:40 ` Andrew Cagney
2002-01-29 11:45   ` Daniel Jacobowitz [this message]
2002-01-29 19:47     ` Alan Modra
2002-01-29 21:43       ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020129141659.A2426@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).