kvlist: avoid unused-but-set warnings in code not using the name in kvlist_for_each()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
b3a6939f38
commit
c4b9eb1442
1 changed files with 1 additions and 1 deletions
2
kvlist.h
2
kvlist.h
|
@ -37,7 +37,7 @@ struct kvlist_node {
|
||||||
|
|
||||||
#define kvlist_for_each(kv, name, value) \
|
#define kvlist_for_each(kv, name, value) \
|
||||||
for (value = (void *) __avl_list_to_kv((kv)->avl.list_head.next)->data, \
|
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; \
|
&__ptr_to_kv(value)->avl.list != &(kv)->avl.list_head; \
|
||||||
value = (void *) (__avl_list_to_kv(__ptr_to_kv(value)->avl.list.next))->data, \
|
value = (void *) (__avl_list_to_kv(__ptr_to_kv(value)->avl.list.next))->data, \
|
||||||
name = (const char *) __ptr_to_kv(value)->avl.key)
|
name = (const char *) __ptr_to_kv(value)->avl.key)
|
||||||
|
|
Loading…
Reference in a new issue