mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-05 02:49:01 +00:00
MINOR: task: Fix a compiler warning by adding a cast.
When calling HA_ATOMIC_CAS with a pointer as the target, the compiler expects a pointer as the new value, so give it one by casting 0x1 to (void *).
This commit is contained in:
parent
ee07dbeca5
commit
caa8a37ffe
@ -218,7 +218,7 @@ static inline void task_insert_into_tasklet_list(struct task *t)
|
||||
* another runqueue. We set leaf_p to 0x1 to indicate that the node is
|
||||
* not in a tree but that it's in the tasklet list. See task_in_rq().
|
||||
*/
|
||||
if (unlikely(!HA_ATOMIC_CAS(&t->rq.node.leaf_p, &expected, 0x1)))
|
||||
if (unlikely(!HA_ATOMIC_CAS(&t->rq.node.leaf_p, &expected, (void *)0x1)))
|
||||
return;
|
||||
HA_ATOMIC_ADD(&tasks_run_queue, 1);
|
||||
task_list_size[tid]++;
|
||||
|
Loading…
Reference in New Issue
Block a user