mirror of https://gitee.com/openkylin/libvirt.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é <berrange@redhat.com>
This commit is contained in:
parent
23605f58bf
commit
4d2b96655f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue