summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-05-01 15:40:43 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-05-02 22:04:46 +0100
commit42b9f8590d3002bc04b08397031b80e4a4d6e921 (patch)
treefd9afbf8f13672573e224328c6e26c44a4780e1b /scons
parent5bd3b91784450b668d9ed37593a9a7b9fcb53073 (diff)
scons: Adjust the warnings for VS.
Silence insignificant warnings so significant warnings have a chance to stand out. The only abundant warning that's not silenced here is "C4018: signed/unsigned mismatch", as it could hide security issues, so it's better to actually fix the code. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index d13d0e67b83e..ca317b0cfdc2 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -455,7 +455,9 @@ def generate(env):
]
ccflags += [
'/W3', # warning level
- #'/Wp64', # enable 64 bit porting warnings
+ '/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)
'/wd4996', # disable deprecated POSIX name warnings
]
if env['machine'] == 'x86':