scons: Silence MSVC warnings about overflows in constant arithmetic.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 18 Mar 2015 14:18:28 +0000 (14:18 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 18 Mar 2015 21:51:40 +0000 (21:51 +0000)
These get triggered even when using the standard C99 INFINITY/NAN
constants.

Reviewed-by: Brian Paul <brianp@vmware.com>
scons/gallium.py

index 9d53848937532d0ac5be082561a477202d4ad569..b4018e76049505dc9303ad536783345313c54f36 100755 (executable)
@@ -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
         ]