mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02: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
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user