From c4b9eb14427593d189328f43b287dfa526d122ba Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 15 Apr 2014 16:58:55 +0200 Subject: kvlist: avoid unused-but-set warnings in code not using the name in kvlist_for_each() Signed-off-by: Felix Fietkau --- kvlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvlist.h b/kvlist.h index 339cc1d..a4e1b1d 100644 --- a/kvlist.h +++ b/kvlist.h @@ -37,7 +37,7 @@ struct kvlist_node { #define kvlist_for_each(kv, name, value) \ for (value = (void *) __avl_list_to_kv((kv)->avl.list_head.next)->data, \ - name = (const char *) __ptr_to_kv(value)->avl.key; \ + name = (const char *) __ptr_to_kv(value)->avl.key, (void) name; \ &__ptr_to_kv(value)->avl.list != &(kv)->avl.list_head; \ value = (void *) (__avl_list_to_kv(__ptr_to_kv(value)->avl.list.next))->data, \ name = (const char *) __ptr_to_kv(value)->avl.key) -- cgit v1.2.3