From c4599da258730d660a360986a648d7cc259ff006 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 3 Dec 2016 03:29:45 +0000 Subject: [PATCH] Turn off testsuite warnings by default with GCC git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@288576 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/test/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/libcxx/test/config.py b/test/libcxx/test/config.py index df998717c..6b2bf7f3a 100644 --- a/test/libcxx/test/config.py +++ b/test/libcxx/test/config.py @@ -634,8 +634,9 @@ class Configuration(object): self.cxx.compile_flags += ['-D_LIBCPP_DEBUG=%s' % debug_level] def configure_warnings(self): - default_enable_warnings = len( - self.config.available_features.intersection( + # Turn on warnings by default for Clang based compilers when C++ >= 11 + default_enable_warnings = self.cxx.type in ['clang', 'apple-clang'] \ + and len(self.config.available_features.intersection( ['c++11', 'c++14', 'c++1z'])) != 0 enable_warnings = self.get_lit_bool('enable_warnings', default_enable_warnings)