gratuitous gcc warnings: unused function arguments?
Tim Kientzle
kientzle at freebsd.org
Sun Jan 16 11:47:49 PST 2005
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
More information about the freebsd-current
mailing list