summaryrefslogtreecommitdiff
path: root/src/compiler/nir/nir_gs_count_vertices.c
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2018-10-20 18:00:09 +0100
committerEric Engestrom <eric.engestrom@intel.com>2018-10-25 12:43:18 +0100
commite27902a261361e8a7980db14138ef13753db196d (patch)
tree021b6638314baf37073766f1092e2be736da75aa /src/compiler/nir/nir_gs_count_vertices.c
parentbb84fa146f2252f22999205a2904d8a948bffd3b (diff)
util: use C99 declaration in the for-loop set_foreach() macro
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Diffstat (limited to 'src/compiler/nir/nir_gs_count_vertices.c')
-rw-r--r--src/compiler/nir/nir_gs_count_vertices.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_gs_count_vertices.c b/src/compiler/nir/nir_gs_count_vertices.c
index 934c46b78f1..06b9cdf7376 100644
--- a/src/compiler/nir/nir_gs_count_vertices.c
+++ b/src/compiler/nir/nir_gs_count_vertices.c
@@ -62,7 +62,6 @@ nir_gs_count_vertices(const nir_shader *shader)
/* set_vertex_count intrinsics only appear in predecessors of the
* end block. So we don't need to walk all of them.
*/
- struct set_entry *entry;
set_foreach(function->impl->end_block->predecessors, entry) {
nir_block *block = (nir_block *) entry->key;