Commit 42b9f859 authored by José Fonseca's avatar José Fonseca

scons: Adjust the warnings for VS.

Silence insignificant warnings so significant warnings have a chance to
stand out.

The only abundant warning that's not silenced here is "C4018:
signed/unsigned mismatch", as it could hide security issues, so it's better
to actually fix the code.
Reviewed-by: default avatarBrian Paul <>
Reviewed-by: default avatarRoland Scheidegger <>
parent 5bd3b917
......@@ -455,7 +455,9 @@ def generate(env):
ccflags += [
'/W3', # warning level
#'/Wp64', # enable 64 bit porting warnings
'/wd4244', # conversion from 'type1' to 'type2', possible loss of data
'/wd4305', # truncation from 'type1' to 'type2'
'/wd4800', # forcing value to bool 'true' or 'false' (performance warning)
'/wd4996', # disable deprecated POSIX name warnings
if env['machine'] == 'x86':
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment