From 03c5bd928dfe1bda04ab56511746b5af3b6e3ee1 Mon Sep 17 00:00:00 2001 From: Eric Milkie Date: Wed, 3 Dec 2014 16:18:38 -0500 Subject: [PATCH] SERVER-16410 suppress missing-braces warning on clang --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) 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):