Skip to content

Commit b502aa4

Browse files
committed
Merge branch 'rb/hashmap-h-compilation-fix' into maint
Code clean-up. * rb/hashmap-h-compilation-fix: hashmap.h: remove unused variable
2 parents 9bcb489 + 7d68bb0 commit b502aa4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hashmap.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,15 +400,14 @@ static inline void hashmap_disable_item_counting(struct hashmap *map)
400400
*/
401401
static inline void hashmap_enable_item_counting(struct hashmap *map)
402402
{
403-
void *item;
404403
unsigned int n = 0;
405404
struct hashmap_iter iter;
406405

407406
if (map->do_count_items)
408407
return;
409408

410409
hashmap_iter_init(map, &iter);
411-
while ((item = hashmap_iter_next(&iter)))
410+
while (hashmap_iter_next(&iter))
412411
n++;
413412

414413
map->do_count_items = 1;

0 commit comments

Comments
 (0)