From: José Fonseca Date: Tue, 25 Nov 2014 22:27:04 +0000 (+0000) Subject: scons: Disable MSVC signed/unsigned mismatch warnings. X-Git-Tag: upstream/17.1.0~19979 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbac03ecca51fdbedf3c569c68322043c8e93fae;p=platform%2Fupstream%2Fmesa.git 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 Reviewed-by: Roland Scheidegger --- diff --git a/scons/gallium.py b/scons/gallium.py index b162089..9d53848 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)