mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
SERVER-15358 suppress spurious MSVC warning regarding default initialized array members
Closes #792 Signed-off-by: Benety Goh <benety@mongodb.com>
This commit is contained in:
parent
a83553d6bf
commit
a658204bcd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user