nir: Silence unused parameter warnings in generated nir_constant_expressions code
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 17 Feb 2018 01:48:57 +0000 (17:48 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 3 Mar 2018 00:10:44 +0000 (16:10 -0800)
commit3a944316c44621ad824c812907d9d1e0d3ddda46
treeff28331d666791c5951fa8a6abff6984c1c3ea9e
parentab8f2e30b8ea3565c00a76b546b7ef3b78ab7ff6
nir: Silence unused parameter warnings in generated nir_constant_expressions code

Reduces my build from 2075 warnings to 2023 warnings by silencing 52
instances of things like

src/compiler/nir/nir_constant_expressions.c: In function ‘evaluate_bfi’:
src/compiler/nir/nir_constant_expressions.c:1812:61: warning: unused parameter ‘bit_size’ [-Wunused-parameter]
 evaluate_bfi(MAYBE_UNUSED unsigned num_components, unsigned bit_size,
                                                             ^~~~~~~~

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/compiler/nir/nir_constant_expressions.py