Skip to content

Commit 7d68bb0

Browse files
rsbeckercagitster
authored andcommitted
hashmap.h: remove unused variable
In 'hashmap_enable_item_counting()', item is assigned but never used. This causes a warning on HP NonStop. As the variable is never used, fix this by just removing it. Signed-off-by: Randall S. Becker <[email protected]> Helped-by: Thomas Gummerer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8b604d1 commit 7d68bb0

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
@@ -402,15 +402,14 @@ static inline void hashmap_disable_item_counting(struct hashmap *map)
402402
*/
403403
static inline void hashmap_enable_item_counting(struct hashmap *map)
404404
{
405-
void *item;
406405
unsigned int n = 0;
407406
struct hashmap_iter iter;
408407

409408
if (map->do_count_items)
410409
return;
411410

412411
hashmap_iter_init(map, &iter);
413-
while ((item = hashmap_iter_next(&iter)))
412+
while (hashmap_iter_next(&iter))
414413
n++;
415414

416415
map->do_count_items = 1;

0 commit comments

Comments
 (0)