foreach: remove unused var warning.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Oct 2012 11:05:27 +0000 (21:35 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Oct 2012 11:05:27 +0000 (21:35 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/foreach/foreach.c

index 879ab86e99c3df3a71a6d0b1dea49297d6818562..ab0f515c643edca6633d79a0d3f0d4b42468412b 100644 (file)
@@ -144,10 +144,8 @@ int _foreach_intval_next(const void *i, int val, ...)
 
 void *_foreach_ptrval_init(const void *i, const void *val, ...)
 {
-       struct iter_info *info;
-
        free_old_iters(i);
-       info = new_iter(i);
+       new_iter(i);
 
        return (void *)val;
 }