X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fassert.h;h=ab745db18022aeda15f1d04ba6d4ef93c82b4f9d;hp=b0dc692cd23a9475fcd96c67dc742e74686e976b;hb=ae0c1de530bc3b27069008b8b247171d08dbe80b;hpb=c1a9658bd19245ff0fb52d3da567815d822fb622 diff --git a/include/assert.h b/include/assert.h index b0dc692c..ab745db1 100644 --- a/include/assert.h +++ b/include/assert.h @@ -5,14 +5,14 @@ #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 extern "C" { #endif -_Noreturn void __assert_fail (const char *, const char *, int, const char *); +void __assert_fail (const char *, const char *, int, const char *); #ifdef __cplusplus }