Re: gratuitous gcc warnings: unused function arguments?

From: Thomas Dickey <dickey_at_radix.net>
Date: Sun, 16 Jan 2005 14:37:57 -0500
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
Received on Sun Jan 16 2005 - 18:37:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC