projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49de685
)
BUILD: dns: avoid a build warning when threads are disabled (dss unused)
author
Willy Tarreau
<w@1wt.eu>
Wed, 24 Feb 2021 16:38:46 +0000
(17:38 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Wed, 24 Feb 2021 16:42:04 +0000
(17:42 +0100)
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.
src/dns.c
patch
|
blob
|
history
diff --git
a/src/dns.c
b/src/dns.c
index
cb30bff
..
69364eb
100644
(file)
--- a/
src/dns.c
+++ b/
src/dns.c
@@
-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;