aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-11-06 10:04:16 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-11-06 10:04:16 +0000
commitec7a8bf0b8f7dc7288fe8745464ee8217528cc6c (patch)
tree4f470a0055f24505c86d789e746731c49d99fb45 /configure
parentb33afc415622e5eb26e0f14fd27eb86e32a5472e (diff)
parent20bc94a2b8449b7700b6bfa25a87ce2320a1c649 (diff)
downloadqemu-ec7a8bf0b8f7dc7288fe8745464ee8217528cc6c.zip
qemu-ec7a8bf0b8f7dc7288fe8745464ee8217528cc6c.tar.gz
qemu-ec7a8bf0b8f7dc7288fe8745464ee8217528cc6c.tar.bz2
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging
* Remove legacy KVM PCI device assignment * Fix qemu-pr-helper.c compilation on older compilers # gpg: Signature made Sun 05 Nov 2017 13:52:36 GMT # gpg: using RSA key 0xBFFBD25F78C7AE83 # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" # gpg: aka "Paolo Bonzini <pbonzini@redhat.com>" # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4 E2F7 7E15 100C CD36 69B1 # Subkey fingerprint: F133 3857 4B66 2389 866C 7682 BFFB D25F 78C7 AE83 * remotes/bonzini/tags/for-upstream: build: disable -Wmissing-braces on older compilers pci-assign: Remove Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 285d123..e31d6a7 100755
--- a/configure
+++ b/configure
@@ -1669,6 +1669,19 @@ EOF
fi
fi
+# Disable -Wmissing-braces on older compilers that warn even for
+# the "universal" C zero initializer {0}.
+cat > $TMPC << EOF
+struct {
+ int a[2];
+} x = {0};
+EOF
+if compile_object "-Werror" "" ; then
+ :
+else
+ QEMU_CFLAGS="$QEMU_CFLAGS -Wno-missing-braces"
+fi
+
# Workaround for http://gcc.gnu.org/PR55489. Happens with -fPIE/-fPIC and
# large functions that use global variables. The bug is in all releases of
# GCC, but it became particularly acute in 4.6.x and 4.7.x. It is fixed in