nir: Silence a couple of warnings in release builds
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 Feb 2019 20:33:34 +0000 (14:33 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 Feb 2019 22:04:35 +0000 (16:04 -0600)
commitb14d7a6b6098f9fdb317f5f647543e5de2550c22
tree7508407056290fc116db522af9e117a83fafef6f
parent6775665e5eec7db3f291508a8b7ba2a792f62ec0
nir: Silence a couple of warnings in release builds

[28/716] Compiling C object 'src/compiler/nir/068b2c8@@nir@sta/nir_gather_xfb_info.c.o'.
../src/compiler/nir/nir_gather_xfb_info.c: In function ‘nir_gather_xfb_info’:
../src/compiler/nir/nir_gather_xfb_info.c:171:13: warning: variable ‘max_offset’ set but not used [-Wunused-but-set-variable]
    unsigned max_offset[NIR_MAX_XFB_BUFFERS] = {0};
             ^~~~~~~~~~
[36/716] Compiling C object 'src/compiler/nir/068b2c8@@nir@sta/nir_instr_set.c.o'.
../src/compiler/nir/nir_instr_set.c:502:1: warning: ‘instr_each_src_and_dest_is_ssa’ defined but not used [-Wunused-function]
 instr_each_src_and_dest_is_ssa(nir_instr *instr)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_gather_xfb_info.c
src/compiler/nir/nir_instr_set.c