From 9253146b900969d6a5c938c0ff7c1cb3409e9087 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 28 Jan 2025 18:03:11 +0100 Subject: [PATCH] BUILD: queues: Use unsigned int when needed Use unsigned int instead of int when calculating which thread group we should dequeue from next, as the difference in signedness makes clang unhappy. --- src/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue.c b/src/queue.c index 2e8e861a5..4af08d123 100644 --- a/src/queue.c +++ b/src/queue.c @@ -428,7 +428,7 @@ int process_srv_queue(struct server *s) self_served = _HA_ATOMIC_LOAD(&s->per_tgrp[tgid - 1].self_served) % (MAX_SELF_USE_QUEUE + 1); if ((self_served == MAX_SELF_USE_QUEUE && non_empty_tgids != (1UL << (tgid - 1))) || !(non_empty_tgids & (1UL << (tgid - 1)))) { - int old_served, new_served; + unsigned int old_served, new_served; /* * We want to dequeue from another queue. The last