mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
SERVER-10401 Suppress tautology warning in v8 triggered when using clang-3.4
This commit is contained in:
parent
e5e0da93d6
commit
3ffea6597a
@ -1073,6 +1073,9 @@ def doConfigure(myenv):
|
|||||||
# including at least g++-4.6.
|
# including at least g++-4.6.
|
||||||
AddToCCFLAGSIfSupported(myenv, "-Wno-deprecated-declarations")
|
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'):
|
if has_option('c++11'):
|
||||||
# The Microsoft compiler does not need a switch to enable C++11. Again we should be
|
# 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.
|
# checking for MSVC, not windows. In theory, we might be using clang or icc on windows.
|
||||||
|
Loading…
Reference in New Issue
Block a user