0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

SERVER-10401 Suppress tautology warning in v8 triggered when using clang-3.4

This commit is contained in:
Andrew Morrow 2013-08-01 11:55:47 -04:00
parent e5e0da93d6
commit 3ffea6597a

View File

@ -1073,6 +1073,9 @@ def doConfigure(myenv):
# including at least g++-4.6.
AddToCCFLAGSIfSupported(myenv, "-Wno-deprecated-declarations")
# 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")
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.