projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
638698d
)
MINOR: mt_lists: Appease gcc.
author
Olivier Houchard
<ohouchard@haproxy.com>
Wed, 11 Mar 2020 14:09:16 +0000
(15:09 +0100)
committer
Olivier Houchard
<cognet@ci0.org>
Wed, 11 Mar 2020 16:10:08 +0000
(17:10 +0100)
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
patch
|
blob
|
history
diff --git
a/include/common/mini-clist.h
b/include/common/mini-clist.h
index
f18e3f0
..
a7b5a5d
100644
(file)
--- 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);