- Fix compile warning when threads disabled.

This commit is contained in:
W.C.A. Wijngaards 2020-02-12 11:55:02 +01:00
parent 7dcfe531e4
commit 9e193be648
2 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@
- Fix contrib/fastrpz.patch to apply cleanly. Fix for serve-stale - Fix contrib/fastrpz.patch to apply cleanly. Fix for serve-stale
fixes, but it does not compile, conflicts with new rpz code. 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 to clean memory leak of respip_addr.lock when ip_tree deleted.
- Fix compile warning when threads disabled.
10 February 2020: George 10 February 2020: George
- Document 'ub_result.was_ratelimited' in libunbound. - Document 'ub_result.was_ratelimited' in libunbound.

View file

@ -75,6 +75,9 @@ resp_addr_del(rbnode_type* n, void* ATTR_UNUSED(arg))
{ {
struct resp_addr* r = (struct resp_addr*)n->key; struct resp_addr* r = (struct resp_addr*)n->key;
lock_rw_destroy(&r->lock); lock_rw_destroy(&r->lock);
#ifdef THREADS_DISABLED
(void)r;
#endif
} }
void void