From 70099fec51d45bf613f3bef630efe7d74a0b8e47 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Oct 2019 23:46:50 +0200 Subject: Enable signed conversion warnings --- wscript | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wscript b/wscript index 7d71e308..2b4cd071 100644 --- a/wscript +++ b/wscript @@ -80,6 +80,17 @@ def configure(conf): ['-Wno-documentation-unknown-command', '-Wno-zero-as-null-pointer-constant']) + if Options.options.ultra_strict: + for var in ['CFLAGS', 'CXXFLAGS']: + if conf.env.MSVC_COMPILER: + conf.env.append_value(var, ['/wd4355', + '/wd4464', + '/wd4623', + '/wd4868', + '/wd4996']) + else: + conf.env.append_value('CFLAGS', ['-Wsign-conversion']) + if Options.options.stack_check: conf.define('SERD_STACK_CHECK', SERD_VERSION) -- cgit v1.2.1