diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 329d642300e..1d70f7f66f2 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4348,6 +4348,7 @@ static inline bool should_print_nir(UNUSED nir_shader *shader) { return false; } printf("%s\n", #pass); \ if (pass(nir, ##__VA_ARGS__)) { \ nir_validate_shader(nir, "after " #pass); \ + UNUSED bool _; \ progress = true; \ if (should_print_nir(nir)) \ nir_print_shader(nir, stdout); \