From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32064 invoked by alias); 5 May 2010 14:40:25 -0000 Received: (qmail 32035 invoked by uid 22791); 5 May 2010 14:40:22 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 May 2010 14:40:17 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id AFF992BAB77; Wed, 5 May 2010 10:40:15 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PEtJRpN6QF7E; Wed, 5 May 2010 10:40:15 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 7888E2BAB51; Wed, 5 May 2010 10:40:15 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id D4C04F58F9; Wed, 5 May 2010 07:40:04 -0700 (PDT) Date: Wed, 05 May 2010 14:40:00 -0000 From: Joel Brobecker To: Jan Kratochvil Cc: Pierre Muller , gdb@sourceware.org, gdb-patches@sourceware.org Subject: Re: [ARI] Status of ATTRIBUTE_UNUSED in gdb sources Message-ID: <20100505144004.GL2768@adacore.com> 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> <20100504211425.GA22466@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100504211425.GA22466@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00093.txt.bz2 > > 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. What I think Jan and I wanted to say is that -Wunused-param is not useless; but that it comes at too high a price for too little gain. The example that Jan provided was meant to be a real-life example where the warning would have been useful (assuming that the high noise/signal ration haven't conditioned us to simply silence it without looking further). -- Joel