[Mesa-dev] [PATCH 12/15] scons: Silence MSVC C4351 warning.
Jose Fonseca
jfonseca at vmware.com
Fri Mar 20 06:59:38 PDT 2015
It warns about change in MSVC behavior -- array initialisation used to
be non-standard, but is standard now, assuming I understand correctly
http://en.cppreference.com/w/cpp/language/zero_initialization .
---
scons/gallium.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/scons/gallium.py b/scons/gallium.py
index 9fe2dbd..fac724e 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -508,6 +508,7 @@ def generate(env):
'/wd4056', # overflow in floating-point constant arithmetic
'/wd4244', # conversion from 'type1' to 'type2', 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
'/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