# HG changeset patch # User Santeri Piippo # Date 1382438861 -10800 # Node ID a12e36f2db5f2e7a561024a7cca82811a93a9338 # Parent afa691788bdbbdc3c83ae164061bc004abaa4351 enclosed the assert replacement in braces. In release mode, the assert is replaced with nothing and there's a little bit of code in addObjectDialog which uses it as a statement in an one-line if(). With the assert disappearing in release builds this triggered a GCC warning, as the if would be left without a body. diff -r afa691788bdb -r a12e36f2db5f src/common.h --- a/src/common.h Tue Oct 22 13:40:16 2013 +0300 +++ b/src/common.h Tue Oct 22 13:47:41 2013 +0300 @@ -143,9 +143,9 @@ #endif // assert #ifdef DEBUG -# define assert(N) ((N) ? (void) 0 : assertionFailure (__FILE__, __LINE__, FUNCNAME, #N)) +# define assert(N) { ((N) ? (void) 0 : assertionFailure (__FILE__, __LINE__, FUNCNAME, #N)) } #else -# define assert(N) +# define assert(N) {} #endif // DEBUG // Version string identifier