Skip to content

Commit 8f9e94e

Browse files
committed
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 9a74a6c ("MAJOR: log: introduce log backends"). No backport is needed.
1 parent 54c94c6 commit 8f9e94e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/log.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ static void _log_backend_srv_queue(struct server *srv)
809809

810810
static void log_backend_srv_up(struct server *srv)
811811
{
812-
struct proxy *p = srv->proxy;
812+
struct proxy *p __maybe_unused = srv->proxy;
813813

814814
if (!srv_lb_status_changed(srv))
815815
return; /* nothing to do */
@@ -863,7 +863,7 @@ static void _log_backend_srv_dequeue(struct server *srv)
863863

864864
static void log_backend_srv_down(struct server *srv)
865865
{
866-
struct proxy *p = srv->proxy;
866+
struct proxy *p __maybe_unused = srv->proxy;
867867

868868
if (!srv_lb_status_changed(srv))
869869
return; /* nothing to do */

0 commit comments

Comments
 (0)