aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-03-01 12:34:25 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-03-04 14:03:46 +0000
commit2946e1af2704bf6584f57d4e3aec49d1d5f3ecc0 (patch)
tree1d0fed8f6b774237cc14ba36c474b4cfc7dbbecf /configure
parentc15d9e2311a54346e01afb22007d0868724ee8c8 (diff)
downloadqemu-2946e1af2704bf6584f57d4e3aec49d1d5f3ecc0.zip
qemu-2946e1af2704bf6584f57d4e3aec49d1d5f3ecc0.tar.gz
qemu-2946e1af2704bf6584f57d4e3aec49d1d5f3ecc0.tar.bz2
configure: Disable thread-safety warnings on macOS
The enablement of -Wthread-safety broke compilation on macOS (if -Werror is enabled, like in our CI). Disable it there by default until the problems are resolved. Signed-off-by: Thomas Huth <thuth@redhat.com> Acked-by: Kevin Wolf <kwolf@redhat.com> Message-id: 20230301113425.286946-1-thuth@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 50a0b80..219ff13 100755
--- a/configure
+++ b/configure
@@ -1230,7 +1230,10 @@ add_to warn_flags -Wendif-labels
add_to warn_flags -Wexpansion-to-defined
add_to warn_flags -Wimplicit-fallthrough=2
add_to warn_flags -Wmissing-format-attribute
-add_to warn_flags -Wthread-safety
+
+if test "$targetos" != "darwin"; then
+ add_to warn_flags -Wthread-safety
+fi
nowarn_flags=
add_to nowarn_flags -Wno-initializer-overrides