From e27902a261361e8a7980db14138ef13753db196d Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 20 Oct 2018 18:00:09 +0100 Subject: util: use C99 declaration in the for-loop set_foreach() macro Signed-off-by: Eric Engestrom Reviewed-by: Timothy Arceri --- src/compiler/nir/nir_from_ssa.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/compiler/nir/nir_from_ssa.c') diff --git a/src/compiler/nir/nir_from_ssa.c b/src/compiler/nir/nir_from_ssa.c index 08d480f119c..e13c510c111 100644 --- a/src/compiler/nir/nir_from_ssa.c +++ b/src/compiler/nir/nir_from_ssa.c @@ -830,7 +830,6 @@ place_phi_read(nir_shader *shader, nir_register *reg, if (block != def->parent_instr->block) { /* Try to go up the single-successor tree */ bool all_single_successors = true; - struct set_entry *entry; set_foreach(block->predecessors, entry) { nir_block *pred = (nir_block *)entry->key; if (pred->successors[0] && pred->successors[1]) { -- cgit v1.2.3