mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-15 03:56:56 -04:00
BUILD: task: Fix build when no 8B CAS is available at all
Some checks are pending
Contrib / admin/halog/ (push) Waiting to run
Contrib / dev/flags/ (push) Waiting to run
Contrib / dev/haring/ (push) Waiting to run
Contrib / dev/hpack/ (push) Waiting to run
Contrib / dev/poll/ (push) Waiting to run
FreeBSD / clang (push) Waiting to run
VTest / Generate Build Matrix (push) Waiting to run
VTest / (push) Blocked by required conditions
Windows / Windows, gcc, all features (push) Waiting to run
Some checks are pending
Contrib / admin/halog/ (push) Waiting to run
Contrib / dev/flags/ (push) Waiting to run
Contrib / dev/haring/ (push) Waiting to run
Contrib / dev/hpack/ (push) Waiting to run
Contrib / dev/poll/ (push) Waiting to run
FreeBSD / clang (push) Waiting to run
VTest / Generate Build Matrix (push) Waiting to run
VTest / (push) Blocked by required conditions
Windows / Windows, gcc, all features (push) Waiting to run
clang (rightfully) complains that when neither HA_CAS_IS_8B nor HA_HAVE_CAS_DW is defined, there is a mismatch when we're doing a CAS, as we're mixing unsigned int and int. To fix that, just turn old_state to an unsigned int, as it should be. This should fix github issue #3441
This commit is contained in:
parent
cfe708d049
commit
0a11d75c1b
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ static inline int __task_set_state_and_tid(struct task *t, int expected_tid, int
|
|||
#endif
|
||||
return 1;
|
||||
#else /* !HA_CAS_IS_8B && !HA_HAVE_CAS_DW */
|
||||
int old_state;
|
||||
unsigned int old_state;
|
||||
int ret = 0;
|
||||
|
||||
HA_SPIN_LOCK(OTHER_LOCK, &task_state_tid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue