From fb6dc8e8945117cfc9f8e1d8a5f27137a6bb902d Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 23 May 2018 11:33:51 -0700 Subject: intel/compiler: Silence unused parameter warnings brw_nir.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/intel/compiler/brw_nir.c: In function ‘brw_nir_lower_vue_outputs’: src/intel/compiler/brw_nir.c:464:32: warning: unused parameter ‘is_scalar’ [-Wunused-parameter] bool is_scalar) ^~~~~~~~~ src/intel/compiler/brw_nir.c: In function ‘lower_bit_size_callback’: src/intel/compiler/brw_nir.c:610:57: warning: unused parameter ‘data’ [-Wunused-parameter] lower_bit_size_callback(const nir_alu_instr *alu, void *data) ^~~~ Signed-off-by: Ian Romanick Reviewed-by: Caio Marcelo de Oliveira Filho --- src/intel/compiler/brw_nir.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/intel/compiler/brw_nir.c') diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index f4aee3d41ee..f2553519fac 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -460,8 +460,7 @@ brw_nir_lower_fs_inputs(nir_shader *nir, } void -brw_nir_lower_vue_outputs(nir_shader *nir, - bool is_scalar) +brw_nir_lower_vue_outputs(nir_shader *nir) { nir_foreach_variable(var, &nir->outputs) { var->data.driver_location = var->data.location; @@ -593,7 +592,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler, } static unsigned -lower_bit_size_callback(const nir_alu_instr *alu, void *data) +lower_bit_size_callback(const nir_alu_instr *alu, UNUSED void *data) { assert(alu->dest.dest.is_ssa); if (alu->dest.dest.ssa.bit_size != 16) -- cgit v1.2.3