diff options
-rw-r--r-- | include/assert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/assert.h b/include/assert.h index b0dc692c..c64d3e52 100644 --- a/include/assert.h +++ b/include/assert.h @@ -5,7 +5,7 @@ #ifdef NDEBUG #define assert(x) (void)0 #else -#define assert(x) ((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0)) +#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0))) #endif #ifdef __cplusplus |