diff options
author | Andrew Morrow <acm@10gen.com> | 2013-09-18 16:43:19 -0400 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2013-09-18 17:39:40 -0400 |
commit | 681bc4c9be6a3628a0a0a7d0a3fc8443c2e63091 (patch) | |
tree | f7d21fd2d2f0941749e874bc458998962c007347 /SConstruct | |
parent | be4bc7d410dce6d82015143964c6f9bf76b16eec (diff) | |
download | mongo-681bc4c9be6a3628a0a0a7d0a3fc8443c2e63091.tar.gz |
SERVER-10401 Disable new clang-3.4 warning
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index b8b5001c728..65987dd24f9 100644 --- a/SConstruct +++ b/SConstruct @@ -1171,6 +1171,10 @@ def doConfigure(myenv): # As of clang-3.4, this warning appears in v8, and gets escalated to an error. AddToCCFLAGSIfSupported(myenv, "-Wno-tautological-constant-out-of-range-compare") + # New in clang-3.4, trips up things mostly in third_party, but in a few places in the + # primary mongo sources as well. + AddToCCFLAGSIfSupported(myenv, "-Wno-unused-const-variable") + if has_option('c++11'): # The Microsoft compiler does not need a switch to enable C++11. Again we should be # checking for MSVC, not windows. In theory, we might be using clang or icc on windows. |