From 49983a9fe11840e0fc14a96e4097ad56cc2d06c8 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 11 Mar 2020 15:09:16 +0100 Subject: [PATCH] MINOR: mt_lists: Appease gcc. gcc is confused, and think p may end up being NULL in _MT_LIST_RELINK_DELETED. It should never happen, so let gcc know that. --- include/common/mini-clist.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/common/mini-clist.h b/include/common/mini-clist.h index f18e3f072..a7b5a5dd8 100644 --- a/include/common/mini-clist.h +++ b/include/common/mini-clist.h @@ -608,6 +608,7 @@ struct cond_wordlist { #define _MT_LIST_RELINK_DELETED(elt2) \ do { \ struct mt_list *n = elt2.next, *p = elt2.prev; \ + ALREADY_CHECKED(p); \ n->prev = p; \ p->next = n; \ } while (0);