[Mesa-dev] [PATCH 3/9] scons: Disable MSVC signed/unsigned mismatch warnings.
jfonseca at vmware.com
jfonseca at vmware.com
Wed Nov 26 10:47:25 PST 2014
From: José Fonseca <jfonseca at vmware.com>
Unfortunately gcc completely ignores the issue, and as result code that
mixes signed/unsigned is so widespread through the code base end up
being little more than noise, potentially obscuring more pertinent
warnings.
This change disables them.
---
scons/gallium.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/scons/gallium.py b/scons/gallium.py
index 8e2090b..d9bf760 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -462,6 +462,7 @@ def generate(env):
]
ccflags += [
'/W3', # warning level
+ '/wd4018', # signed/unsigned mismatch
'/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)
--
1.9.1
More information about the mesa-dev
mailing list