summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-10-20 18:00:08 +0100
committerEric Engestrom <[email protected]>2018-10-25 12:43:18 +0100
commitbb84fa146f2252f22999205a2904d8a948bffd3b (patch)
tree2e4773252d67da46590ec4a545fc10f6125043a9 /src/mesa/main
parent3d261cf77b35c56cc575ce9bb7909d2f8d920233 (diff)
util: use C99 declaration in the for-loop hash_table_foreach() macro
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/hash.c3
1 files changed, 0 insertions, 3 deletions
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);
}