diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-10-17 02:47:11 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-10-17 02:47:11 -0400 |
commit | 858df113bfac4d2ebb60c3fac1538e07d56096b0 (patch) | |
tree | 926aa8f1ef7a911c7e438995f035375e00ea13a3 /include/assert.h | |
parent | c86f2974e2acd330be2d587173dd4dd56db82e22 (diff) | |
download | musl-858df113bfac4d2ebb60c3fac1538e07d56096b0.tar.gz |
assert() is supposed to have type void
Diffstat (limited to 'include/assert.h')
-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 |