From: Olivier Houchard Date: Wed, 11 Mar 2020 14:09:16 +0000 (+0100) Subject: MINOR: mt_lists: Appease gcc. X-Git-Tag: v2.2-dev5~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49983a9fe11840e0fc14a96e4097ad56cc2d06c8;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/common/mini-clist.h b/include/common/mini-clist.h index f18e3f072f..a7b5a5dd87 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);