From 7ebdbcc89e6c08c3bb21227a85f0850f42873f64 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 27 Nov 2009 10:57:49 -0800 Subject: [PATCH] hmap: Remove shadowed variable from inner scope. 'j' is also declared at the top level of the function so there is no need to declare it inside the 'for' loop. --- tests/libpspp/hmap-test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/libpspp/hmap-test.c b/tests/libpspp/hmap-test.c index 4ca7f92f..3b336906 100644 --- a/tests/libpspp/hmap-test.c +++ b/tests/libpspp/hmap-test.c @@ -378,7 +378,6 @@ check_hmap (struct hmap *hmap, const int data[], size_t cnt, for (p = hmap_first (hmap), i = 0; i < cnt; p = hmap_next (hmap, p), i++) { struct element *e = hmap_node_to_element (p); - size_t j; check (hmap_node_hash (&e->node) == hash (e->data)); for (j = 0; j < left; j++) -- 2.30.2