]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix compile warning when threads disabled.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 12 Feb 2020 10:55:02 +0000 (11:55 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 12 Feb 2020 10:55:02 +0000 (11:55 +0100)
doc/Changelog
respip/respip.c

index 0a7807ca127e873f6f400a9a1a738db70856342b..6752a1475a0421c8b1377c1585347960aa1998ee 100644 (file)
@@ -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.
index e9b7d5dbf9d9c248cee6572fd074bc91d2091e8e..f504f55791ac07c2b05a4df16f118bdf2f6c2beb 100644 (file)
@@ -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