summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2014-12-03 16:18:38 -0500
committerEric Milkie <milkie@10gen.com>2014-12-03 16:18:44 -0500
commit03c5bd928dfe1bda04ab56511746b5af3b6e3ee1 (patch)
tree315b62c328f26ababd3306edace56afa87ea8d64 /SConstruct
parent293c0ca515eb30cc8f4c74eb82c4e7b5f16d95c5 (diff)
downloadmongo-03c5bd928dfe1bda04ab56511746b5af3b6e3ee1.tar.gz
SERVER-16410 suppress missing-braces warning on clang
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index d0b90dd208d..80c854a575c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1398,6 +1398,10 @@ def doConfigure(myenv):
# GCC >= 4.6. Error explained in https://svn.boost.org/trac/boost/ticket/6136 .
AddToCCFLAGSIfSupported(myenv, "-Wno-unused-but-set-variable")
+ # This has been suppressed in gcc 4.8, due to false positives, but not in clang. So
+ # we explicitly disable it here.
+ AddToCCFLAGSIfSupported(myenv, "-Wno-missing-braces")
+
# Check if we need to disable null-conversion warnings
if using_clang():
def CheckNullConversion(context):