diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2012-10-14 21:00:39 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-10-27 14:20:06 +0000 |
commit | c1556a812a16023894e53c7b2215929741a5bf17 (patch) | |
tree | dff97a9e3fd3497473417c7a68f97abfd6774faa /configure | |
parent | 8473f377393219390ea6f2d8d450a2b054bb823e (diff) | |
download | qemu-c1556a812a16023894e53c7b2215929741a5bf17.zip qemu-c1556a812a16023894e53c7b2215929741a5bf17.tar.gz qemu-c1556a812a16023894e53c7b2215929741a5bf17.tar.bz2 |
configure: Disable (clang) initializer-overrides warnings
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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |