]> git.proxmox.com Git - qemu.git/commitdiff
configure: Disable (clang) initializer-overrides warnings
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 14 Oct 2012 20:00:39 +0000 (21:00 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 27 Oct 2012 14:20:06 +0000 (14:20 +0000)
Disable clang's initializer-overrides warnings, as QEMU makes significant
use of the pattern of initializing an array with a range-based default
entry like
    [0 ... 0x1ff] = { GPIO_NONE, 0 }
followed by specific entries which override that default, and clang
would otherwise warn "initializer overrides prior initialization of
this subobject" when it encountered the specific entry.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index fa5657f6bcb2ee88ef1201622918c94d91b5f6b0..34ba9c7199eb563f4a150c963bf85a262cd22384 100755 (executable)
--- a/configure
+++ b/configure
@@ -1160,6 +1160,7 @@ gcc_flags="-Wold-style-declaration -Wold-style-definition -Wtype-limits"
 gcc_flags="-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers $gcc_flags"
 gcc_flags="-Wmissing-include-dirs -Wempty-body -Wnested-externs $gcc_flags"
 gcc_flags="-fstack-protector-all -Wendif-labels $gcc_flags"
+gcc_flags="-Wno-initializer-overrides $gcc_flags"
 # Note that we do not add -Werror to gcc_flags here, because that would
 # enable it for all configure tests. If a configure test failed due
 # to -Werror this would just silently disable some features,