about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/list.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/list.h b/include/list.h
index a0f23c85..d9cd9d34 100644
--- a/include/list.h
+++ b/include/list.h
@@ -107,6 +107,7 @@ static inline void list_append(list_t *list, void *el) {
     if (!el_box) FATAL("foreach over uninitialized list"); \
     while (el_box != head) {                               \
                                                            \
+      __attribute__((unused))                              \
       type *el = (type *)((el_box)->data);                 \
       /* get next so el_box can be unlinked */             \
       element_t *next = el_box->next;                      \