
14 Mar
2010
14 Mar
'10
5:43 p.m.
Mateusz Loskot wrote:
I forgotten about -Wextra option and now GCC 4.4.1 reports the same worning, indeed. I was wrong, the assert macro is not that clever as I suggested
Which is not quite surprising as the C standard says this: <quote> If NDEBUG is defined as a macro name at the point in the source file where <assert.h> is included, the assert macro is defined simply as #define assert(ignore) ((void)0) </quote> Gevorg