summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2017-06-16 13:08:49 -0400
committerGitHub <noreply@github.com>2017-06-16 13:08:49 -0400
commitc455dcfd99c4311838a194df917b63ceb61876f3 (patch)
treea2e2ebaeb243305d96128541158876bb6d86805e
parent15bf184909f8fc69c93404e93f20ad5dcbe3c2c2 (diff)
downloadmongo-c455dcfd99c4311838a194df917b63ceb61876f3.tar.gz
WT-3371 Make Windows/MSVC build warnings fatal. (#3466)
The exception is the SWIG-generated Python wrapper code.
-rw-r--r--SConstruct10
1 files changed, 4 insertions, 6 deletions
diff --git a/SConstruct b/SConstruct
index 22f869e02e7..2661807594d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -67,15 +67,11 @@ var.Add('CPPPATH', 'C Preprocessor include path', [
])
var.Add('CFLAGS', 'C Compiler Flags', [
- "/Z7", # Generate debugging symbols
"/wd4090", # Ignore warning about mismatched const qualifiers
"/wd4996", # Ignore deprecated functions
"/W3", # Warning level 3
- #"/we4244", # Possible loss of data
- "/we4013", # Error on undefined functions
- #"/we4047", # Indirection differences in types
- #"/we4024", # Differences in parameter types
- #"/we4100", # Unreferenced local parameter
+ "/WX", # Warnings are fatal
+ "/Z7", # Generate debugging symbols
"/TC", # Compile as C code
#"/Od", # Disable optimization
"/Ob1", # inline expansion
@@ -338,6 +334,8 @@ if GetOption("lang-python"):
"-nodefaultctor",
"-nodefaultdtor",
])
+ # Ignore warnings in swig-generated code.
+ pythonEnv['CFLAGS'].remove("/WX")
swiglib = pythonEnv.SharedLibrary('_wiredtiger',
[ 'lang\python\wiredtiger.i'],