From: Daniel P. Berrangé Date: Tue, 8 Oct 2019 12:41:19 +0000 (+0100) Subject: m4: fix setting of warning flags X-Git-Tag: v5.9.0-rc1~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d2b96655fda2324faf0722149a4b3c62599cbcb;p=thirdparty%2Flibvirt.git m4: fix setting of warning flags When adding the -std=gnu99 flag, we set $wantwarn instead of appending to it. This meant all the compiler warnings were accidentally discarded. Signed-off-by: Daniel P. Berrangé --- diff --git a/m4/virt-compile-warnings.m4 b/m4/virt-compile-warnings.m4 index 411d257465..26f231f97e 100644 --- a/m4/virt-compile-warnings.m4 +++ b/m4/virt-compile-warnings.m4 @@ -192,7 +192,7 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[ # Request the gnu99 standard which is the best choice with # gcc 4.8.0. Not a warning flag, but the probing mechanism # is convenient - wantwarn="-std=gnu99" + wantwarn="$wantwarn -std=gnu99" # Check for $CC support of each warning for w in $wantwarn; do