gss: cleanup warnings in HEIM_SLIST_ATOMIC_FOREACH (#447)
Cleanup unused result warning when calling heim_base_exchange_pointer() from HEIM_SLIST_ATOMIC_FOREACH() in mechqueue.h.
This commit is contained in:
@@ -105,8 +105,8 @@ struct { \
|
||||
} while (/*CONSTCOND*/0)
|
||||
|
||||
#define HEIM_SLIST_ATOMIC_FOREACH(var, head, field) \
|
||||
for (heim_base_exchange_pointer(&(var), (head)->slh_first); \
|
||||
for ((void)heim_base_exchange_pointer(&(var), (head)->slh_first); \
|
||||
(var) != NULL; \
|
||||
heim_base_exchange_pointer(&(var), (var)->field.sle_next))
|
||||
(void)heim_base_exchange_pointer(&(var), (var)->field.sle_next))
|
||||
|
||||
#endif /* !_MECHQUEUE_H_ */
|
||||
|
Reference in New Issue
Block a user