std-aux: fix _NM_ASSERT_FAIL_ENABLED for plain assert() and NDEBUG

Fixes: 8e3299498d ('std-aux,glib-aux: rework nm_assert() implementations')
This commit is contained in:
Thomas Haller
2022-11-30 09:47:01 +01:00
parent 08262ce372
commit 7483dfd7c4

View File

@@ -226,7 +226,7 @@ _nm_assert_fail_internal(const char *assertion,
#define _NM_ASSERT_FAIL_ENABLED 1
#define _nm_assert_fail(msg) __assert_fail((msg), __FILE__, __LINE__, __func__)
#else
#define _NM_ASSERT_FAIL_ENABLED 1
#define _NM_ASSERT_FAIL_ENABLED 0
#define _nm_assert_fail(msg) \
do { \
_nm_unused const char *_msg = (msg); \