From: Willy Tarreau Date: Wed, 2 Apr 2025 13:25:08 +0000 (+0200) Subject: BUILD: backend: silence a build warning when not using ssl X-Git-Tag: v3.2-dev9~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=870f7aa5cf50c13bf2c141e1f2903d185a16cb1e;p=thirdparty%2Fhaproxy.git BUILD: backend: silence a build warning when not using ssl Since recent commit ee94a6cfc1 ("MINOR: backend: extract conn reuse from connect_server()") a build warning "set but not used" on the "reuse" variable is emitted, because indeed the variable is now only checked when SSL is in use. Let's just mark it as such. --- diff --git a/src/backend.c b/src/backend.c index 80b651510..8a3399efa 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1779,7 +1779,7 @@ int connect_server(struct stream *s) struct connection *srv_conn = NULL; struct server *srv; int reuse_mode; - int reuse = 0; + int reuse __maybe_unused = 0; int init_mux = 0; int err; struct sockaddr_storage *bind_addr = NULL;