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: How to force gcc to report a warning/error


Thomas Martitz <thomas.martitz@student.htw-berlin.de> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]