gratuitous gcc warnings: unused function arguments?

Thomas Dickey dickey at radix.net
Sun Jan 16 11:37:59 PST 2005


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


More information about the freebsd-current mailing list