printf core: fix gratuitous integer formatting buffer size
[musl] / include / assert.h
index b0dc692..d14ec94 100644 (file)
@@ -5,7 +5,11 @@
 #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
+
+#if __STDC_VERSION__ >= 201112L && !defined(__cplusplus)
+#define static_assert _Static_assert
 #endif
 
 #ifdef __cplusplus