summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-11-25 22:27:04 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-18 21:51:40 +0000
commitbbac03ecca51fdbedf3c569c68322043c8e93fae (patch)
tree6806334cb32b233ac689a59938665a07cae414f9 /scons
parent2ccfce3f4ce72e1ae3e85c44193b3343e23572d8 (diff)
scons: Disable MSVC signed/unsigned mismatch warnings.
By default gcc ignores the issue, and as result code that mixes signed/unsigned is so widespread through the code base that it ends up being little more than noise, potentially obscuring more pertinent warnings. Maybe one day we enable the corresponding gcc warnings and cleanup, but until then, this change disables them. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index b162089f62..9d53848937 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -494,6 +494,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)