mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-24 15:49:14 -04:00
BUILD: dns: avoid a build warning when threads are disabled (dss unused)
dns_session_release() only uses its struct dns_stream_server to access the lock, so a warning is emitted when threads are disabled. Let's mark it __maybe_unused.
This commit is contained in:
parent
49de68520e
commit
e3e648c92f
1 changed files with 1 additions and 1 deletions
|
|
@ -780,7 +780,7 @@ static struct appctx *dns_session_create(struct dns_session *ds);
|
|||
static void dns_session_release(struct appctx *appctx)
|
||||
{
|
||||
struct dns_session *ds = appctx->ctx.sft.ptr;
|
||||
struct dns_stream_server *dss;
|
||||
struct dns_stream_server *dss __maybe_unused;
|
||||
|
||||
if (!ds)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue