From: Eric B. <ebo...@li...> - 2002-12-14 08:32:04
|
> 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 |