+if cc_name != 'msvc'
+ cc_flags += [
+ '-Qunused-arguments',
+ '-Wbad-function-cast',
+ '-Wduplicated-branches',
+ '-Wduplicated-cond',
+ '-Wformat-overflow=2',
+ '-Wformat-truncation=1', # 2 prints too much noise
+ '-Wformat=2',
+ '-Wlogical-op',
+ '-Wmissing-declarations',
+ '-Wmissing-noreturn',
+ '-Wmissing-prototypes',
+ '-Wno-embedded-directive',
+ '-Wold-style-definition',
+ '-Wredundant-decls',
+ '-Wreturn-type',
+ '-Wstrict-prototypes',
+ '-Wswitch-enum',
+ '-Wtrampolines', # may require executable stack which is disabled
+ '-Wvla', # VLAs are not supported by MSVC
+ '-Wwrite-strings',
+ '-fdiagnostics-show-option',
+ '-fno-strict-overflow',
+ '-fstrict-aliasing',
+ ]
+endif
+