mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
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:
parent
54c94c60d2
commit
8f9e94ecff
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue