From f69746c9f9e1c56944c8a486fd851c66ba5db6a8 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 15 Jan 2020 22:24:18 +0100 Subject: [PATCH] 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 | : note: this is the location of the previous definition --- clients/common/nm-client-utils.c | 1 + 1 file changed, 1 insertion(+) 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