Re: How to force gcc to report a warning/error

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

 



Thomas Martitz <thomas.martitz@xxxxxxxxxxxxxxxxxxxxx> writes:

> Assuming min() is a macro or a pure or inline function,  shouldn't gcc issue a "statement without effect" warning because it has no side effects?

Yes.  But that will only happen if min is indeed given the pure
attribute.

Ian


[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