From c8e782191656f1f7fbb9af111e074939558e3122 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sun, 23 Oct 2016 19:01:10 +0000 Subject: [PATCH] Turn on -Wshadow so I find occurances before STL does git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@284944 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/test/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/libcxx/test/config.py b/test/libcxx/test/config.py index 6655743ae..7db7636db 100644 --- a/test/libcxx/test/config.py +++ b/test/libcxx/test/config.py @@ -627,6 +627,7 @@ class Configuration(object): '-D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER', '-Wall', '-Wextra', '-Werror' ] + self.cxx.addWarningFlagIfSupported('-Wshadow') self.cxx.addWarningFlagIfSupported('-Wno-unused-command-line-argument') self.cxx.addWarningFlagIfSupported('-Wno-attributes') self.cxx.addWarningFlagIfSupported('-Wno-pessimizing-move')