From 52b28d2f30eb47529d12150697a0ad9c6189f9f1 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 27 Oct 2021 11:58:05 +0200 Subject: [PATCH] BUILD: log: Fix compilation without SSL support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When compiled without SSL support, a variable is reported as not used by GCC. src/log.c: In function ‘sess_build_logline’: src/log.c:2056:36: error: unused variable ‘conn’ [-Werror=unused-variable] 2056 | struct connection *conn; | ^~~~ This does not need to be backported. --- src/log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/log.c b/src/log.c index 4734508c48..6912217de3 100644 --- a/src/log.c +++ b/src/log.c @@ -2052,7 +2052,9 @@ int sess_build_logline(struct session *sess, struct stream *s, char *dst, size_t return 0; list_for_each_entry(tmp, list_format, list) { +#ifdef USE_OPENSSL struct connection *conn; +#endif const struct sockaddr_storage *addr; const char *src = NULL; struct sample *key; -- 2.47.3