From 7483dfd7c4a4fe49868dee30c19f285d07606ea9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 30 Nov 2022 09:47:01 +0100 Subject: [PATCH] std-aux: fix _NM_ASSERT_FAIL_ENABLED for plain assert() and NDEBUG Fixes: 8e3299498dd1 ('std-aux,glib-aux: rework nm_assert() implementations') --- src/libnm-std-aux/nm-std-aux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libnm-std-aux/nm-std-aux.h b/src/libnm-std-aux/nm-std-aux.h index a8b18ef1b2..bef11c86eb 100644 --- a/src/libnm-std-aux/nm-std-aux.h +++ b/src/libnm-std-aux/nm-std-aux.h @@ -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); \