From df85836b15dd55285b05a4532c6e6cee01d1776e Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 16 Aug 2018 10:28:11 +0000 Subject: [PATCH] - Fix warning on compile without threads. git-svn-id: file:///svn/unbound/trunk@4855 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ util/tcp_conn_limit.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 1be8ddf95..6b68c9a5c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +16 August 2018: Wouter + - Fix warning on compile without threads. + 15 August 2018: Wouter - Fix segfault in auth-zone read and reorder of RRSIGs. diff --git a/util/tcp_conn_limit.c b/util/tcp_conn_limit.c index fea6f18bd..d7d86a540 100644 --- a/util/tcp_conn_limit.c +++ b/util/tcp_conn_limit.c @@ -67,6 +67,9 @@ tcl_list_free_node(rbnode_type* node, void* ATTR_UNUSED(arg)) { struct tcl_addr* n = (struct tcl_addr*) node; lock_quick_destroy(&n->lock); +#ifdef THREADS_DISABLED + (void)n; +#endif } void