From: Mark Andrews Date: Thu, 11 Jun 2015 04:03:19 +0000 (+1000) Subject: silence unused parameter warning X-Git-Tag: v9.11.0a1~730 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c781d465b6a6d3174e96b2ab94172fc3e0cb3b53;p=thirdparty%2Fbind9.git silence unused parameter warning --- diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 01e91ea2ee4..625891ca878 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -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