]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence unused parameter warning
authorMark Andrews <marka@isc.org>
Thu, 11 Jun 2015 04:03:19 +0000 (14:03 +1000)
committerMark Andrews <marka@isc.org>
Thu, 11 Jun 2015 04:03:19 +0000 (14:03 +1000)
lib/dns/rbtdb.c

index 01e91ea2ee4dca375f3062faf54e657a9d5b035b..625891ca878829eb1d002a34add939b92ff6ac1f 100644 (file)
@@ -4545,6 +4545,11 @@ check_stale_rdataset(dns_rbtnode_t *node, rdatasetheader_t *header,
                     isc_rwlocktype_t *locktype, nodelock_t *lock,
                     rbtdb_search_t *search, rdatasetheader_t **header_prev)
 {
+
+#if !defined(ISC_RWLOCK_USEATOMIC) || !defined(DNS_RBT_USEISCREFCOUNT)
+       UNUSED(lock);
+#endif
+
        if (header->rdh_ttl < search->now) {
                /*
                 * This rdataset is stale.  If no one else is using the