diff options
author | Ian Romanick <[email protected]> | 2018-01-04 15:28:30 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2018-01-10 07:21:11 -0800 |
commit | fd2f4f507fe863567045b9a60c7fca71d73fcd8b (patch) | |
tree | 0092558a0b59e3d1bfb6b1acea0ad0368030104d /src/compiler/nir | |
parent | d0ef3d4bb0f381ac08232ad89c6510e05f03a3d4 (diff) |
nir: Silence unused parameter warnings
In file included from src/compiler/nir/nir_opt_algebraic.c:4:0:
src/compiler/nir/nir_search_helpers.h: In function ‘is_not_const’:
src/compiler/nir/nir_search_helpers.h:118:59: warning: unused parameter
‘num_components’ [-Wunused-parameter]
is_not_const(nir_alu_instr *instr, unsigned src, unsigned num_components,
^~~~~~~~~~~~~~
src/compiler/nir/nir_search_helpers.h:119:29: warning: unused parameter
‘swizzle ’ [-Wunused-parameter]
const uint8_t *swizzle)
^~~~~~~
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Alejandro Piñeiro <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_search_helpers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_search_helpers.h b/src/compiler/nir/nir_search_helpers.h index 200f2471f84..2e3bd137d6d 100644 --- a/src/compiler/nir/nir_search_helpers.h +++ b/src/compiler/nir/nir_search_helpers.h @@ -115,8 +115,8 @@ is_zero_to_one(nir_alu_instr *instr, unsigned src, unsigned num_components, } static inline bool -is_not_const(nir_alu_instr *instr, unsigned src, unsigned num_components, - const uint8_t *swizzle) +is_not_const(nir_alu_instr *instr, unsigned src, UNUSED unsigned num_components, + UNUSED const uint8_t *swizzle) { nir_const_value *val = nir_src_as_const_value(instr->src[src].src); |