el no longer has to be used in loop

This commit is contained in:
Dominik Maier 2020-04-01 20:42:50 +02:00 committed by van Hauser
parent 9d067d26da
commit d064b2e4af

View File

@ -107,6 +107,7 @@ static inline void list_append(list_t *list, void *el) {
if (!el_box) FATAL("foreach over uninitialized list"); \ if (!el_box) FATAL("foreach over uninitialized list"); \
while (el_box != head) { \ while (el_box != head) { \
\ \
__attribute__((unused)) \
type *el = (type *)((el_box)->data); \ type *el = (type *)((el_box)->data); \
/* get next so el_box can be unlinked */ \ /* get next so el_box can be unlinked */ \
element_t *next = el_box->next; \ element_t *next = el_box->next; \