diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-15 18:58:55 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-15 18:58:55 +0400 |
commit | c4b9eb14427593d189328f43b287dfa526d122ba (patch) | |
tree | d388c9cadfe634c69f826be49e3c3d896376bad8 /kvlist.h | |
parent | b3a6939f386f5a8f7b307211b15b939167d92a10 (diff) |
kvlist: avoid unused-but-set warnings in code not using the name in kvlist_for_each()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'kvlist.h')
-rw-r--r-- | kvlist.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |