From 0cb874320951bb3202a25c28334657edef77227b Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 10 Jul 2024 15:15:49 +0200 Subject: [PATCH] BUILD: listener: silence a build warning about unused value without threads A variable introduced in commit 1a43b9f32c ("MINOR: proto: extend connection thread rebind API") is not used without threads and causes a build warning. Let's just mark it maybe_unused. Since the commit above is tagged for backporting, this one will need to be backported along with it. --- src/listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listener.c b/src/listener.c index 5d07a6650..fa3b12c5c 100644 --- a/src/listener.c +++ b/src/listener.c @@ -1019,7 +1019,7 @@ static inline int listener_uses_maxconn(const struct listener *l) */ void listener_accept(struct listener *l) { - void (*li_set_affinity2)(struct connection *); + void (*li_set_affinity2)(struct connection *) __maybe_unused; struct connection *cli_conn; struct proxy *p; unsigned int max_accept;