I have this Objective-C istruction:
NSRange range = NSMakeRange(i, MIN(a, b));
where a
and b
are NSUInteger
s.
MIN()
is the macro defined in the standard NSObjCRuntime.h
header file as:
#if !defined(MIN)
#define MIN(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __a : __b; })
#endif
During the compilation, the LLVM Compiler 4.1 highlights my instruction showing the warning: "Use of GNU statement expression extension".
What does this mean? Is it my fault? If yes, how can I fix it? If not, how can I remove the compiler warning?
MIN()
macro is defined in the Apple headers (which I can't obviously change), there is a way to suppress this warning in my code? – Lamed