Re: best practice to handle unused variables depending on macros

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

 



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 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