summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2017-06-19 13:08:31 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2017-06-19 13:08:31 -0400
commit3542249772f1a9b836d1f9e97f631dc922877c72 (patch)
treeffe34a6e3b17f36c24e0f24929d2abbd6a643557 /SConstruct
parent3737a7bad0d92bc8ee1383d3d00bd4ca0b0e24f5 (diff)
downloadmongo-3542249772f1a9b836d1f9e97f631dc922877c72.tar.gz
SERVER-27244 Status usage compile-time error.
This change activates the compile-time checking for unused `mongo::Status` results. A few more `transitional_ignore` calls were needed for a few more tests which appeared.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index a6122753d5a..d76ccfab807 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1605,6 +1605,8 @@ if env.TargetOSIs('posix'):
env.Append( CCFLAGS=["-Werror"] )
env.Append( CXXFLAGS=["-Woverloaded-virtual"] )
+ if env.ToolchainIs('clang'):
+ env.Append( CXXFLAGS=['-Werror=unused-result'] )
# On OS X, clang doesn't want the pthread flag at link time, or it
# issues warnings which make it impossible for us to declare link