Compiler error when using typedef void as function parameter with gcc 4.4.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have typedef void as follows in one of my header files:

typedef void VOID;

And I am using this typedef as function parameter as follows:

VOID  someFunction(VOID);

This code compiles fine with gcc 3.3.5, but when I compile it with gcc 4.4.2, I get following error:

error: '<anonymous>' has incomplete type
error: invalid use of 'VOID'

Will you please shed some light on why would it not work with gcc 4.4.2?

Thanks,
Mithun

This email and any attachments are only for use by the intended recipient(s) and may contain legally privileged, confidential, proprietary or otherwise private information. Any unauthorized use, reproduction, dissemination, distribution or other disclosure of the contents of this e-mail or its attachments is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete the original. Neither this information block, the typed name of the sender, nor anything else in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux