From 78169870e416fde51946f8295fa6e1c652305447 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 24 Jan 2019 14:37:16 -0800 Subject: [PATCH] nir: Silence zillions of unused parameter warnings in release builds Fixes: cd56d79b59f "nir: check NIR_SKIP to skip passes by name" Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Timothy Arceri --- src/compiler/nir/nir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index ff2c41faf27..8e0d285e2f2 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2825,7 +2825,7 @@ should_print_nir(void) static inline void nir_validate_shader(nir_shader *shader, const char *when) { (void) shader; (void)when; } static inline void nir_metadata_set_validation_flag(nir_shader *shader) { (void) shader; } static inline void nir_metadata_check_validation_flag(nir_shader *shader) { (void) shader; } -static inline bool should_skip_nir(const char *pass_name) { return false; } +static inline bool should_skip_nir(UNUSED const char *pass_name) { return false; } static inline bool should_clone_nir(void) { return false; } static inline bool should_serialize_deserialize_nir(void) { return false; } static inline bool should_print_nir(void) { return false; } -- 2.30.2