From owner-freebsd-current@FreeBSD.ORG Sun Jan 16 19:47:49 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8496216A4CF for ; Sun, 16 Jan 2005 19:47:49 +0000 (GMT) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 440FD43D48 for ; Sun, 16 Jan 2005 19:47:49 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from freebsd.org (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id j0GJlmOZ042813; Sun, 16 Jan 2005 11:47:49 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <41EAC4E4.5020809@freebsd.org> Date: Sun, 16 Jan 2005 11:47:48 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Thomas Dickey References: <20050116144113.GB66854@gothmog.gr> <41EAB5FE.30603@freebsd.org> <20050116193757.GA10974@saltmine.radix.net> In-Reply-To: <20050116193757.GA10974@saltmine.radix.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: gratuitous gcc warnings: unused function arguments? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jan 2005 19:47:49 -0000 Thomas Dickey wrote: > On Sun, Jan 16, 2005 at 10:44:14AM -0800, Tim Kientzle wrote: > >>Giorgos Keramidas suggested: >> >>>% (void)argv; >> >>I first saw this idiom for marking unused >>arguments over 10 years ago and have used >>it extensively since then. Very portable; >>highly recommended. > > > except of course for the compilers that warn about no effect... I've not seen that issue with this particular idiom. The compilers I've seen seem to recognize this as a special case. No doubt there are exceptions. Tim