summaryrefslogtreecommitdiff
path: root/scons/gallium.py
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-03-18 14:18:28 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-18 21:51:40 +0000
commit1d30fd85dd2a240d4ccafc9a9eca55a129306cf5 (patch)
tree841ae940780baf6253ddbec6599381deb5b5f4c6 /scons/gallium.py
parentbbac03ecca51fdbedf3c569c68322043c8e93fae (diff)
scons: Silence MSVC warnings about overflows in constant arithmetic.
These get triggered even when using the standard C99 INFINITY/NAN constants. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'scons/gallium.py')
-rwxr-xr-xscons/gallium.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 9d538489375..b4018e76049 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
]