From e0ec818cfd86815ee9a3de62e1596c83bb791173 Mon Sep 17 00:00:00 2001 From: "Thomas H.P. Andersen" Date: Wed, 22 Dec 2021 14:16:31 +0100 Subject: [PATCH] microsoft/compiler: dxil_nir_opt_alu_deref_srcs: return progress dxil_nir_opt_alu_deref_srcs will always return false because the progress variable is declared both for the function and also inside the loop. Spotted by a unused-but-set-variable warning from clang Reviewed-by: Jesse Natalie Part-of: --- src/microsoft/compiler/dxil_nir.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/microsoft/compiler/dxil_nir.c b/src/microsoft/compiler/dxil_nir.c index 9c5a1a2d66d..1db5dd0e44d 100644 --- a/src/microsoft/compiler/dxil_nir.c +++ b/src/microsoft/compiler/dxil_nir.c @@ -934,7 +934,6 @@ dxil_nir_opt_alu_deref_srcs(nir_shader *nir) continue; assert(func->impl); - bool progress = false; nir_builder b; nir_builder_init(&b, func->impl);