From: W.C.A. Wijngaards Date: Wed, 12 Feb 2020 10:55:02 +0000 (+0100) Subject: - Fix compile warning when threads disabled. X-Git-Tag: release-1.10.0rc1~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e193be648bb913da03337807d4ff54dd5d4f905;p=thirdparty%2Funbound.git - Fix compile warning when threads disabled. --- diff --git a/doc/Changelog b/doc/Changelog index 0a7807ca1..6752a1475 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ - Fix contrib/fastrpz.patch to apply cleanly. Fix for serve-stale fixes, but it does not compile, conflicts with new rpz code. - Fix to clean memory leak of respip_addr.lock when ip_tree deleted. + - Fix compile warning when threads disabled. 10 February 2020: George - Document 'ub_result.was_ratelimited' in libunbound. diff --git a/respip/respip.c b/respip/respip.c index e9b7d5dbf..f504f5579 100644 --- a/respip/respip.c +++ b/respip/respip.c @@ -75,6 +75,9 @@ resp_addr_del(rbnode_type* n, void* ATTR_UNUSED(arg)) { struct resp_addr* r = (struct resp_addr*)n->key; lock_rw_destroy(&r->lock); +#ifdef THREADS_DISABLED + (void)r; +#endif } void