summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
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')