about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-04-01 20:42:50 +0200
committervan Hauser <vh@thc.org>2020-04-09 10:23:37 +0200
commitd064b2e4afd77c89274d93d65e579d9696a2723b (patch)
tree19230f1adec3a340da13f733525b1fda31fcd323
parent9d067d26daade32f590142373383493338b13ea4 (diff)
downloadafl++-d064b2e4afd77c89274d93d65e579d9696a2723b.tar.gz
el no longer has to be used in loop
-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;                      \