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.
This commit is contained in:
Willy Tarreau 2023-11-20 19:30:42 +01:00
parent 54c94c60d2
commit 8f9e94ecff

View File

@ -809,7 +809,7 @@ static void _log_backend_srv_queue(struct server *srv)
static void log_backend_srv_up(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)) if (!srv_lb_status_changed(srv))
return; /* nothing to do */ 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) 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)) if (!srv_lb_status_changed(srv))
return; /* nothing to do */ return; /* nothing to do */