From: Willy Tarreau Date: Wed, 10 Jul 2024 13:15:49 +0000 (+0200) Subject: BUILD: listener: silence a build warning about unused value without threads X-Git-Tag: v3.1-dev3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cb874320951bb3202a25c28334657edef77227b;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/listener.c b/src/listener.c index 5d07a6650a..fa3b12c5c2 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;