From: José Fonseca Date: Thu, 1 May 2014 14:40:43 +0000 (+0100) Subject: scons: Adjust the warnings for VS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42b9f8590d3002bc04b08397031b80e4a4d6e921;p=mesa.git 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: Brian Paul Reviewed-by: Roland Scheidegger --- diff --git a/scons/gallium.py b/scons/gallium.py index d13d0e67b83..ca317b0cfdc 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -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':