X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fassert.h;h=ab745db18022aeda15f1d04ba6d4ef93c82b4f9d;hp=bad2ccd04cf3bbc9abe39c2f26ef9b8680d60a9e;hb=1ab59de81e94e7802f85d314a709f8350a0e9b65;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/include/assert.h b/include/assert.h index bad2ccd0..ab745db1 100644 --- a/include/assert.h +++ b/include/assert.h @@ -1,9 +1,11 @@ +#include + #undef assert #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