From 8f9e94ecff7a8deb20b6c6891723edf84cb1630a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 20 Nov 2023 19:30:42 +0100 Subject: [PATCH] BUILD: log: silence a build warning when threads are disabled Building without threads emits two warnings because the proxy pointer is no longer used (only serves for the lock) since 2.9 commit 9a74a6cb1 ("MAJOR: log: introduce log backends"). No backport is needed. --- src/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log.c b/src/log.c index bf1c54d37..739add6f1 100644 --- a/src/log.c +++ b/src/log.c @@ -809,7 +809,7 @@ static void _log_backend_srv_queue(struct server *srv) static void log_backend_srv_up(struct server *srv) { - struct proxy *p = srv->proxy; + struct proxy *p __maybe_unused = srv->proxy; if (!srv_lb_status_changed(srv)) return; /* nothing to do */ @@ -863,7 +863,7 @@ static void _log_backend_srv_dequeue(struct server *srv) static void log_backend_srv_down(struct server *srv) { - struct proxy *p = srv->proxy; + struct proxy *p __maybe_unused = srv->proxy; if (!srv_lb_status_changed(srv)) return; /* nothing to do */