Mesa (master): scons: Silence conversion from 'size_t' to 'type', possible loss of data on MSVC.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sun Mar 22 08:23:37 UTC 2015


Module: Mesa
Branch: master
Commit: 06ac7178108ff8eb6e3eae103a302d79f0972d1a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=06ac7178108ff8eb6e3eae103a302d79f0972d1a

Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Fri Mar 20 12:01:23 2015 +0000

scons: Silence conversion from 'size_t' to 'type', possible loss of data on MSVC.

Most cases seem harmless, though that might not always be the case.  Maybe
one day we can get gcc to complain about these and fix them throughout
the code, but until then let's silence them.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 scons/gallium.py |    1 +
 1 file changed, 1 insertion(+)

diff --git a/scons/gallium.py b/scons/gallium.py
index b4df145..efc65e7 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -509,6 +509,7 @@ def generate(env):
             '/wd4018', # signed/unsigned mismatch
             '/wd4056', # overflow in floating-point constant arithmetic
             '/wd4244', # conversion from 'type1' to 'type2', possible loss of data
+            '/wd4267', # 'var' : conversion from 'size_t' to 'type', possible loss of data
             '/wd4305', # truncation from 'type1' to 'type2'
             '/wd4351', # new behavior: elements of array 'array' will be default initialized
             '/wd4756', # overflow in constant arithmetic




More information about the mesa-commit mailing list