diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2014-09-23 11:47:48 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-09-25 09:41:27 -0400 |
commit | a658204bcdac48548821db4bb4638511bffaa670 (patch) | |
tree | cff71c3db24aa5d63482615f4b93d39563be6861 /SConstruct | |
parent | a83553d6bff77a16f797a32c293a6832d4b72743 (diff) | |
download | mongo-a658204bcdac48548821db4bb4638511bffaa670.tar.gz |
SERVER-15358 suppress spurious MSVC warning regarding default initialized array members
Closes #792
Signed-off-by: Benety Goh <benety@mongodb.com>
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index c7282477a43..e398bba8712 100644 --- a/SConstruct +++ b/SConstruct @@ -792,7 +792,12 @@ elif windows: # implement # c4068 # unknown pragma -- added so that we can specify unknown pragmas for other compilers - env.Append( CCFLAGS=["/wd4355", "/wd4800", "/wd4267", "/wd4244", "/wd4290", "/wd4068"] ) + # c4351 + # on extremely old versions of MSVC (pre 2k5), default constructing an array member in a + # constructor's initialization list would not zero the array members "in some cases". + # since we don't target MSVC versions that old, this warning is safe to ignore. + env.Append( CCFLAGS=["/wd4355", "/wd4800", "/wd4267", "/wd4244", + "/wd4290", "/wd4068", "/wd4351"] ) # some warnings we should treat as errors: # c4099 |