From bb84fa146f2252f22999205a2904d8a948bffd3b Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 20 Oct 2018 18:00:08 +0100 Subject: util: use C99 declaration in the for-loop hash_table_foreach() macro Signed-off-by: Eric Engestrom Reviewed-by: Timothy Arceri --- src/mesa/main/hash.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c index 9a6d5ed5edb..902c5efc65a 100644 --- a/src/mesa/main/hash.c +++ b/src/mesa/main/hash.c @@ -283,8 +283,6 @@ _mesa_HashDeleteAll(struct _mesa_HashTable *table, void (*callback)(GLuint key, void *data, void *userData), void *userData) { - struct hash_entry *entry; - assert(callback); _mesa_HashLockMutex(table); table->InDeleteAll = GL_TRUE; @@ -316,7 +314,6 @@ hash_walk_unlocked(const struct _mesa_HashTable *table, assert(table); assert(callback); - struct hash_entry *entry; hash_table_foreach(table->ht, entry) { callback((uintptr_t)entry->key, entry->data, userData); } -- cgit v1.2.3