From owner-freebsd-current@FreeBSD.ORG Sun Jan 16 19:37:59 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 9F8A216A4CE for ; Sun, 16 Jan 2005 19:37:59 +0000 (GMT) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F28F43D1D for ; Sun, 16 Jan 2005 19:37:59 +0000 (GMT) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id j0GJbvNb011237 for ; Sun, 16 Jan 2005 14:37:58 -0500 (EST) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id j0GJbvi1011235 for freebsd-current@freebsd.org; Sun, 16 Jan 2005 14:37:57 -0500 (EST) Date: Sun, 16 Jan 2005 14:37:57 -0500 From: Thomas Dickey To: freebsd-current@freebsd.org Message-ID: <20050116193757.GA10974@saltmine.radix.net> References: <20050116144113.GB66854@gothmog.gr> <41EAB5FE.30603@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41EAB5FE.30603@freebsd.org> User-Agent: Mutt/1.3.27i 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:37:59 -0000 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... -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net