summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2016-05-21 14:02:54 -0400
committerAndrew Morrow <acm@mongodb.com>2016-05-24 11:20:39 -0400
commitd54133690a66797b210a6fd1eac408c0516f6d34 (patch)
tree87789ceb909662cda670c182cc6da8d545f2872e
parent2a6525cea3b95a4e67437d1afaa2a10efbd49456 (diff)
downloadmongo-d54133690a66797b210a6fd1eac408c0516f6d34.tar.gz
SERVER-24240 SERVER-17237 Suppress warnings with newer compilers
-rw-r--r--SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index f1d55f1c944..7ab517706ac 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1781,6 +1781,12 @@ def doConfigure(myenv):
# than the return type.
AddToCXXFLAGSIfSupported(myenv, "-Wredundant-move")
+ # Disable warning about variables that may not be initialized
+ # Failures are triggered in the case of boost::optional in GCC 4.8.x
+ # TODO: re-evaluate when we move to GCC 5.3
+ # see: http://stackoverflow.com/questions/21755206/how-to-get-around-gcc-void-b-4-may-be-used-uninitialized-in-this-funct
+ AddToCXXFLAGSIfSupported(myenv, "-Wno-maybe-uninitialized")
+
# Check if we need to disable null-conversion warnings
if myenv.ToolchainIs('clang'):
def CheckNullConversion(context):