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 <rsbecker@nexbridge.com> Helped-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Randall S. Becker committed Jan 14, 2018 at 13:07 UTC 7d68bb0766120208f4281f278aac80ebd9951e5c
1 file changed +1 -2
hashmap.h
+1 -2
@@ -402,7 +402,6 @@ static inline void hashmap_disable_item_counting(struct hashmap *map)
402 */
403 static inline void hashmap_enable_item_counting(struct hashmap *map)
404 {
405 - void *item;
405 unsigned int n = 0;
406 struct hashmap_iter iter;
407
@@ -410,7 +409,7 @@ static inline void hashmap_enable_item_counting(struct hashmap *map)
409 return;
410
411 hashmap_iter_init(map, &iter);
413 - while ((item = hashmap_iter_next(&iter)))
412 + while (hashmap_iter_next(&iter))
413 n++;
414
415 map->do_count_items = 1;