From: Louis Dionne Date: Thu, 4 Jun 2020 18:04:01 +0000 (-0400) Subject: [libc++] Avoid warning for large types with std::atomic in the test suite X-Git-Tag: llvmorg-12-init~4103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc78f1e0feee7505f9c1ef6b2c4c307267466e4a;p=platform%2Fupstream%2Fllvm.git [libc++] Avoid warning for large types with std::atomic in the test suite It is legitimate for the test suite to use types that are slow to use with std::atomic, since we need coverage for those too. If we don't disable the warning, it is promoted to an error, which prevents us from testing such types. --- diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index 995d0e1..be8ee3b 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -636,6 +636,7 @@ class Configuration(object): self.cxx.addWarningFlagIfSupported('-Wno-user-defined-literals') self.cxx.addWarningFlagIfSupported('-Wno-noexcept-type') self.cxx.addWarningFlagIfSupported('-Wno-aligned-allocation-unavailable') + self.cxx.addWarningFlagIfSupported('-Wno-atomic-alignment') # These warnings should be enabled in order to support the MSVC # team using the test suite; They enable the warnings below and # expect the test suite to be clean.