]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix warning on compile without threads.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 Aug 2018 10:28:11 +0000 (10:28 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 16 Aug 2018 10:28:11 +0000 (10:28 +0000)
git-svn-id: file:///svn/unbound/trunk@4855 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/tcp_conn_limit.c

index 1be8ddf950151a375ab991b46dd6c89ea3e654bc..6b68c9a5c3abb13ba3cffffccbdcdd81259e0a2a 100644 (file)
@@ -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.
 
index fea6f18bde6ba66f9ec203462929cdecf62e524a..d7d86a5407b587f7a4d73b1c74abf0363598edfe 100644 (file)
@@ -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