projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feddffc
)
MINOR: mt_lists: Appease gcc.
author
Olivier Houchard
<ohouchard@haproxy.com>
Wed, 11 Mar 2020 14:09:16 +0000
(15:09 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Tue, 31 Mar 2020 14:52:57 +0000
(16:52 +0200)
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.
(cherry picked from commit
49983a9fe11840e0fc14a96e4097ad56cc2d06c8
)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/common/mini-clist.h
patch
|
blob
|
history
diff --git
a/include/common/mini-clist.h
b/include/common/mini-clist.h
index
f4d2e9f
..
5781899
100644
(file)
--- a/
include/common/mini-clist.h
+++ b/
include/common/mini-clist.h
@@
-614,6
+614,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);