diff options
author | Mathias Stearn <redbeard0531@gmail.com> | 2013-04-24 08:39:01 -0400 |
---|---|---|
committer | Mathias Stearn <redbeard0531@gmail.com> | 2013-04-24 10:33:55 -0400 |
commit | 2d30f0b562c1925a52670e767c2c0222189fb8f0 (patch) | |
tree | 271aca8b57c0ccf908e79b42a96b7ef67e0147ba /SConstruct | |
parent | 92bebb9de4c0842d7aaa257596538b3675a060f8 (diff) | |
download | mongo-2d30f0b562c1925a52670e767c2c0222189fb8f0.tar.gz |
Add -Wno-unused-typedefs to unbreak building with g++-4.8
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 3f2634d120b..c38a205dc49 100644 --- a/SConstruct +++ b/SConstruct @@ -989,7 +989,10 @@ def doConfigure(myenv): def AddToCXXFLAGSIfSupported(env, flag): return AddFlagIfSupported(env, 'C++', '.cpp', flag, CXXFLAGS=[flag]) - if using_clang(): + if using_gcc() or using_clang(): + # This warning was added in g++-4.8. + AddToCCFLAGSIfSupported(myenv, '-Wno-unused-local-typedefs') + # Clang likes to warn about unused functions, which seems a tad aggressive and breaks # -Werror, which we want to be able to use. AddToCCFLAGSIfSupported(myenv, '-Wno-unused-function') |