0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-32130 silence warnings in Intel decimal FP library

This commit is contained in:
Mathias Stearn 2017-11-08 11:51:22 -05:00
parent 7761221a94
commit 84656c3cca

View File

@ -272,8 +272,11 @@ def float53_object(target, source, extra_defines=None):
obj_env = env.Clone()
defines = (extra_defines or []) + ['T_FLOAT']
obj_env.Append(CPPDEFINES=defines)
for to_remove in ['-Werror', '-Wall', '-W']:
removeIfPresent(obj_env['CCFLAGS'], to_remove)
if env.ToolchainIs('msvc'):
removeIfPresent(env['CCFLAGS'], '/W3')
else:
env.Append(CCFLAGS='-w')
return obj_env.LibraryObject(target, source)
# Set OS Defines
@ -338,8 +341,10 @@ if env.TargetOSIs('windows'):
env.Append(CCFLAGS=['/wd4477'])
for to_remove in ['-Werror', '-Wall', '-W', '/W3']:
removeIfPresent(env['CCFLAGS'], to_remove)
if env.ToolchainIs('msvc'):
removeIfPresent(env['CCFLAGS'], '/W3')
else:
env.Append(CCFLAGS='-w')
env.Library(
target='intel_decimal128',