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/gallium/drivers/freedreno/freedreno_batch.c | 2 -- src/gallium/drivers/freedreno/freedreno_batch_cache.c | 1 - src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c | 1 - 3 files changed, 4 deletions(-) (limited to 'src/gallium/drivers/freedreno') diff --git a/src/gallium/drivers/freedreno/freedreno_batch.c b/src/gallium/drivers/freedreno/freedreno_batch.c index 487176cc638..6c05fbaa74d 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch.c +++ b/src/gallium/drivers/freedreno/freedreno_batch.c @@ -182,8 +182,6 @@ batch_flush_reset_dependencies(struct fd_batch *batch, bool flush) static void batch_reset_resources_locked(struct fd_batch *batch) { - struct set_entry *entry; - pipe_mutex_assert_locked(batch->ctx->screen->lock); set_foreach(batch->resources, entry) { diff --git a/src/gallium/drivers/freedreno/freedreno_batch_cache.c b/src/gallium/drivers/freedreno/freedreno_batch_cache.c index a8b32d9bd08..408d48ccdb6 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch_cache.c +++ b/src/gallium/drivers/freedreno/freedreno_batch_cache.c @@ -282,7 +282,6 @@ fd_bc_alloc_batch(struct fd_batch_cache *cache, struct fd_context *ctx, bool non for (unsigned i = 0; i < ARRAY_SIZE(cache->batches); i++) { batch = cache->batches[i]; debug_printf("%d: needs_flush=%d, depends:", batch->idx, batch->needs_flush); - struct set_entry *entry; set_foreach(batch->dependencies, entry) { struct fd_batch *dep = (struct fd_batch *)entry->key; debug_printf(" %d", dep->idx); diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c index 7a3c8a8579c..0c7a722aa0c 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c @@ -2987,7 +2987,6 @@ get_block(struct ir3_context *ctx, const nir_block *nblock) { struct ir3_block *block; struct hash_entry *hentry; - struct set_entry *sentry; unsigned i; hentry = _mesa_hash_table_search(ctx->block_ht, nblock); -- cgit v1.2.3