summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2013-12-18 12:57:34 -0500
committerMark Benvenuto <mark.benvenuto@mongodb.com>2013-12-18 12:57:34 -0500
commit5d54ce99eb7c805f567419f1d473b818fff10bdf (patch)
treef7a238f5ea64f4fb98f8f5cfe67c63a0541df585 /SConstruct
parent0155cd5bc6fb62300ec26130c0f8c16a8a669c82 (diff)
downloadmongo-5d54ce99eb7c805f567419f1d473b818fff10bdf.tar.gz
SERVER-10142: Eliminate Compiler Warnings on Windows Builders
BF-60:compile broken on windows
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 8 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index a96665c43d3..872316ab8c4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -753,7 +753,6 @@ elif windows:
# /EHsc exception handling style for visual studio
# /W3 warning level
- # /WX abort build on compiler warnings
env.Append(CCFLAGS=["/EHsc","/W3"])
# some warnings we don't like:
@@ -770,6 +769,14 @@ elif windows:
# 'conversion' conversion from 'type1' to 'type2', possible loss of data
# An integer type is converted to a smaller integer type.
env.Append( CCFLAGS=["/wd4355", "/wd4800", "/wd4267", "/wd4244"] )
+
+ # some warnings we should treat as errors:
+ # c4099
+ # identifier' : type name first seen using 'objecttype1' now seen using 'objecttype2'
+ # This warning occurs when classes and structs are declared with a mix of struct and class
+ # which can cause linker failures
+ env.Append( CCFLAGS=["/we4099"] )
+
env.Append( CPPDEFINES=["_CONSOLE","_CRT_SECURE_NO_WARNINGS"] )
# this would be for pre-compiled headers, could play with it later