Skip to content
Snippets Groups Projects
Commit 42b9f859 authored by Jose Fonseca's avatar Jose Fonseca
Browse files

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 <brianp@vmware.com>
Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
parent 5bd3b917
No related branches found
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment