public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: binutils@sources.redhat.com
Subject: [RFA] A missing ATTRIBUTE_UNUSED
Date: Tue, 29 Jan 2002 09:13:00 -0000	[thread overview]
Message-ID: <20020129120435.A25902@nevyn.them.org> (raw)

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.

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

2002-01-29  Daniel Jacobowitz  <drow@mvista.com>

	* nm.c (print_value): Mark abfd unused.

Index: nm.c
===================================================================
RCS file: /cvs/src/src/binutils/nm.c,v
retrieving revision 1.18
diff -u -r1.18 nm.c
--- nm.c	2002/01/23 16:12:55	1.18
+++ nm.c	2002/01/29 17:02:10
@@ -1453,7 +1453,7 @@
 
 static void
 print_value (abfd, val)
-     bfd *abfd;
+     bfd *abfd ATTRIBUTE_UNUSED;
      bfd_vma val;
 {
 #if ! defined (BFD64) || BFD_HOST_64BIT_LONG

             reply	other threads:[~2002-01-29 17:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-29  9:13 Daniel Jacobowitz [this message]
2002-01-29 11:40 ` Andrew Cagney
2002-01-29 11:45   ` Daniel Jacobowitz
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=20020129120435.A25902@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).