util: use C99 declaration in the for-loop hash_table_foreach() macro
[mesa.git] / src / mesa / main / hash.c
index 9a6d5ed5edbd1942c29dccd5dd5a93ca6c21328b..902c5efc65a670ff8f7b273ed8313b960bede7d3 100644 (file)
@@ -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);
    }