aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/wscript b/wscript
index bca37d1c..3e1f5027 100644
--- a/wscript
+++ b/wscript
@@ -94,10 +94,12 @@ def configure(conf):
'/wd4200', # nonstandard: zero-sized array in struct/union
'/wd4464', # relative include path contains '..'
'/wd4514', # unreferenced inline function has been removed
+ '/wd4706', # assignment within conditional expression
'/wd4710', # function not inlined
'/wd4711', # function selected for automatic inline expansion
'/wd4820', # padding added after construct
'/wd4996', # POSIX name for this item is deprecated
+ '/wd5045', # will insert Spectre mitigation for memory load
],
})
@@ -135,6 +137,17 @@ def configure(conf):
]
})
+ if 'mingw' in conf.env.CC[0]:
+ conf.env.append_unique('CFLAGS', [
+ '-Wno-float-conversion',
+ '-Wno-format',
+ '-Wno-suggest-attribute=format'
+ ])
+
+ conf.env.append_unique('CXXFLAGS', [
+ '-Wno-suggest-attribute=format'
+ ])
+
conf.env.update({
'BUILD_UTILS': not Options.options.no_utils,
'BUILD_SHARED': not Options.options.no_shared,