Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2005 14:37:57 -0500
From:      Thomas Dickey <dickey@radix.net>
To:        freebsd-current@freebsd.org
Subject:   Re: gratuitous gcc warnings: unused function arguments?
Message-ID:  <20050116193757.GA10974@saltmine.radix.net>
In-Reply-To: <41EAB5FE.30603@freebsd.org>
References:  <Pine.NEB.3.96L.1050116120744.50371A-100000@fledge.watson.org> <20050116144113.GB66854@gothmog.gr> <41EAB5FE.30603@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050116193757.GA10974>