diff --git a/src/libnm-std-aux/nm-std-aux.h b/src/libnm-std-aux/nm-std-aux.h index a1e89680b6..2575be4b69 100644 --- a/src/libnm-std-aux/nm-std-aux.h +++ b/src/libnm-std-aux/nm-std-aux.h @@ -288,6 +288,8 @@ typedef uint64_t _nm_bitwise nm_be64_t; #define nm_assert(cond) \ ({ \ + NM_PRAGMA_WARNING_DISABLE("-Wnonnull-compare"); \ + \ /* nm_assert() must do *nothing* of effect, except evaluating * @cond (0 or 1 times). * @@ -305,6 +307,9 @@ typedef uint64_t _nm_bitwise nm_be64_t; } else { \ _nm_assert_fail(#cond); \ } \ + \ + NM_PRAGMA_WARNING_REENABLE; \ + \ 1; \ })