mirror of
https://github.com/fluencelabs/musl
synced 2025-06-24 12:12:04 +00:00
assert() is supposed to have type void
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
#define assert(x) (void)0
|
#define assert(x) (void)0
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Reference in New Issue
Block a user