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

Add -Wno-unused-typedefs to unbreak building with g++-4.8

This commit is contained in:
Mathias Stearn 2013-04-24 08:39:01 -04:00
parent 92bebb9de4
commit 2d30f0b562

View File

@ -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')