util: use C99 declaration in the for-loop set_foreach() macro
[mesa.git] / src / compiler / nir / nir_split_vars.c
index 7eda99819cc830e276b762f93fa9c1cf5abb1412..bf9205c51503be6aa5a6b1b10ddd26602bb628e5 100644 (file)
@@ -1200,7 +1200,6 @@ shrink_vec_var_list(struct exec_list *vars,
          if (!var_usage || !var_usage->vars_copied)
             continue;
 
-         struct set_entry *copy_entry;
          set_foreach(var_usage->vars_copied, copy_entry) {
             struct vec_var_usage *copy_usage = (void *)copy_entry->key;
             if (copy_usage->comps_kept != var_usage->comps_kept) {