From: Ian Romanick Date: Thu, 24 Jan 2019 22:37:16 +0000 (-0800) Subject: nir: Silence zillions of unused parameter warnings in release builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78169870e416fde51946f8295fa6e1c652305447;p=mesa.git 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 --- 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; }