[Mesa-dev] [PATCH 2/9] scons: Adjust the warnings for VS.
jfonseca at vmware.com
jfonseca at vmware.com
Fri May 2 08:11:49 PDT 2014
From: José Fonseca <jfonseca at vmware.com>
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.
---
scons/gallium.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scons/gallium.py b/scons/gallium.py
index d13d0e6..ca317b0 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':
--
1.9.1
More information about the mesa-dev
mailing list