This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: best practice to handle unused variables depending on macros


On 6 February 2012 18:15, Mathieu Lacage wrote:
> Out of curiosity, would (void)sizeof(a) work with non-gcc compilers ?

What do you mean "work"?

It's valid C, so any compiler will accept it and not evaluate the
expression.  If you mean "will it suppress an unused variable warning"
I don't know.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]