[Mesa-dev] [PATCH 2/6] scons: Silence MSVC warnings about overflows in constant arithmetic.

Jose Fonseca jfonseca at vmware.com
Wed Mar 18 09:34:04 PDT 2015


These get triggered even when using the standard C99 INFINITY/NAN
constants.
---
 scons/gallium.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scons/gallium.py b/scons/gallium.py
index 9d53848..b4018e7 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -495,8 +495,10 @@ def generate(env):
         ccflags += [
             '/W3', # warning level
             '/wd4018', # signed/unsigned mismatch
+            '/wd4056', # overflow in floating-point constant arithmetic
             '/wd4244', # conversion from 'type1' to 'type2', possible loss of data
             '/wd4305', # truncation from 'type1' to 'type2'
+            '/wd4756', # overflow in constant arithmetic
             '/wd4800', # forcing value to bool 'true' or 'false' (performance warning)
             '/wd4996', # disable deprecated POSIX name warnings
         ]
-- 
2.1.0



More information about the mesa-dev mailing list