Skip to content

Commit aabab96

Browse files
rth7680pm215
authored andcommitted
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 <[email protected]> Buglink: https://bugs.launchpad.net/qemu/+bug/1878628 Acked-by: Thomas Huth <[email protected]> Reviewed-by: Eric Blake <[email protected]> Reviewed-by: Alex Bennée <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
1 parent 00849b9 commit aabab96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,7 @@ add_to nowarn_flags -Wno-missing-include-dirs
20542054
add_to nowarn_flags -Wno-shift-negative-value
20552055
add_to nowarn_flags -Wno-string-plus-int
20562056
add_to nowarn_flags -Wno-typedef-redefinition
2057+
add_to nowarn_flags -Wno-tautological-type-limit-compare
20572058

20582059
gcc_flags="$warn_flags $nowarn_flags"
20592060

0 commit comments

Comments
 (0)