summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-01-15 22:24:18 +0100
committerThomas Haller <thaller@redhat.com>2020-01-15 22:25:21 +0100
commitf69746c9f9e1c56944c8a486fd851c66ba5db6a8 (patch)
tree096af3f2ca2cac4c7f39cdb445437bf73c8fce2f
parenta6b6f33f018566db82ec3f943225742c8f9b4e0f (diff)
downloadNetworkManager-f69746c9f9e1c56944c8a486fd851c66ba5db6a8.tar.gz
clients: avoid compiler warning about redefining NDEBUG for qrcodegen
[1/5] Compiling C object 'clients/common/913ef36@@nmc-base@sta/nm-client-utils.c.o'. ../clients/common/nm-client-utils.c:528: warning: "NDEBUG" redefined 528 | #define NDEBUG | <command-line>: note: this is the location of the previous definition
-rw-r--r--clients/common/nm-client-utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clients/common/nm-client-utils.c b/clients/common/nm-client-utils.c
index 4d356edbbe..cf8b478560 100644
--- a/clients/common/nm-client-utils.c
+++ b/clients/common/nm-client-utils.c
@@ -525,6 +525,7 @@ nmc_password_subst_char (void)
#pragma GCC visibility push(hidden)
NM_PRAGMA_WARNING_DISABLE("-Wdeclaration-after-statement")
+#undef NDEBUG
#define NDEBUG
#include "qrcodegen.c"
NM_PRAGMA_WARNING_REENABLE