Re: gratuitous gcc warnings: unused function arguments?

From: Tim Kientzle <kientzle_at_freebsd.org>
Date: Sun, 16 Jan 2005 11:47:48 -0800
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
Received on Sun Jan 16 2005 - 18:47:49 UTC

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