qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] configure: disable -Wxor-used-as-pow


From: Paolo Bonzini
Subject: [PATCH] configure: disable -Wxor-used-as-pow
Date: Tue, 23 Jun 2020 13:37:26 -0400

Clang being clang and adding more pointless warnings.  In a hardware
emulator there are going to be plenty of bitwise operations, and the
chance of someone writing ^ for pow and not being caught is basically
zero.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 8d9435a0e0..d42f060ee7 100755
--- a/configure
+++ b/configure
@@ -2062,6 +2062,7 @@ add_to nowarn_flags -Wno-string-plus-int
 add_to nowarn_flags -Wno-typedef-redefinition
 add_to nowarn_flags -Wno-tautological-type-limit-compare
 add_to nowarn_flags -Wno-psabi
+add_to nowarn_flags -Wno-xor-used-as-pow
 
 gcc_flags="$warn_flags $nowarn_flags"
 
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]