Re: [AD] Unused parameter

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Very early C code looked like this:
>
>    (void)printf("yay\n");
>
> because early compilers warned about unused return values. The idea of
> casting things to void, to indicate that you don't intend to use them, goes
> back a very long way, and MSVC supports it (hey, if it didn't, I'd have had
> a hell of a lot of complaints about DUMB by now). See the C FAQ, question
> 17.5, at:
>
>    http://www.faqs.org/faqs/C-faq/faq/

Doesn't say anything about

	(void) variable;

only about

	(void) function-call;


Nevertheless applied.

-- 
Eric Botcazou



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/