From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20824 invoked by alias); 29 Jan 2002 17:04:32 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 20784 invoked from network); 29 Jan 2002 17:04:31 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 29 Jan 2002 17:04:31 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16VbgR-0006wc-00 for ; Tue, 29 Jan 2002 12:04:35 -0500 Date: Tue, 29 Jan 2002 09:13:00 -0000 From: Daniel Jacobowitz To: binutils@sources.redhat.com Subject: [RFA] A missing ATTRIBUTE_UNUSED Message-ID: <20020129120435.A25902@nevyn.them.org> Mail-Followup-To: binutils@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i X-SW-Source: 2002-01/txt/msg00617.txt.bz2 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 * 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