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:
Luke Howard
2018-12-19 00:36:11 -08:00
parent 4a93c4774a
commit efc5ad8b3c

View File

@@ -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_ */