nir: Silence missing field initializer warnings for vectors in nir_constant_expressions
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 25 Aug 2015 16:21:47 +0000 (17:21 +0100)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Dec 2016 23:55:44 +0000 (15:55 -0800)
commit4300693a078ee29e2be3c05dc0c9383b571786d0
tree5c097e247fd01c88d09e813283ae5eb501b218e0
parent8bfe397974b26ab16ca835dd83340b454e6f2f1f
nir: Silence missing field initializer warnings for vectors in nir_constant_expressions

nir/nir_constant_expressions.c: In function 'evaluate_ball2':
nir/nir_constant_expressions.c:279:7: warning: missing initializer for field 'z' of 'struct bool_vec' [-Wmissing-field-initializers]
       };
       ^
nir/nir_constant_expressions.c:234:10: note: 'z' declared here
    bool z;
          ^

Number of total warnings in my build reduced from 2532 to 2304
(reduction of 228).

v2: Initialize bool vectors with 0 instead of false to keep the
generator simpler.  Suggested by Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_constant_expressions.py