summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRichard Henderson2020-06-17 22:13:07 +0200
committerPeter Maydell2020-06-18 11:26:02 +0200
commitaabab96797a7d61989c25a7ca2b094591bbc74f9 (patch)
tree10e32c90aacc3f1bf6d6457796015c57f22ce055 /configure
parentconfigure: Clean up warning flag lists (diff)
downloadqemu-aabab96797a7d61989c25a7ca2b094591bbc74f9.tar.gz
qemu-aabab96797a7d61989c25a7ca2b094591bbc74f9.tar.xz
qemu-aabab96797a7d61989c25a7ca2b094591bbc74f9.zip
configure: Disable -Wtautological-type-limit-compare
Clang 10 enables this by default with -Wtype-limit. All of the instances flagged by this Werror so far have been cases in which we really do want the compiler to optimize away the test completely. Disabling the warning will avoid having to add ifdefs to work around this. Cc: Eric Blake <eblake@redhat.com> Buglink: https://bugs.launchpad.net/qemu/+bug/1878628 Acked-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20200617201309.1640952-5-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index a8bef95282..5e27229f58 100755
--- a/configure
+++ b/configure
@@ -2054,6 +2054,7 @@ add_to nowarn_flags -Wno-missing-include-dirs
add_to nowarn_flags -Wno-shift-negative-value
add_to nowarn_flags -Wno-string-plus-int
add_to nowarn_flags -Wno-typedef-redefinition
+add_to nowarn_flags -Wno-tautological-type-limit-compare
gcc_flags="$warn_flags $nowarn_flags"