From: Andreas Gustafsson Date: Thu, 28 Jun 2001 00:44:45 +0000 (+0000) Subject: eliminated compiler warning X-Git-Tag: v9.1.3rc3^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e64a3da280fc7ad2b0e3987dc5d7c002c5d1d08c;p=thirdparty%2Fbind9.git eliminated compiler warning --- diff --git a/lib/dns/config/confndc.c b/lib/dns/config/confndc.c index 2abf6fa00c2..e566ca36338 100644 --- a/lib/dns/config/confndc.c +++ b/lib/dns/config/confndc.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: confndc.c,v 1.25.4.2 2001/01/22 20:12:32 bwelling Exp $ */ +/* $Id: confndc.c,v 1.25.4.3 2001/06/28 00:44:45 gson Exp $ */ /* ** options { @@ -1148,6 +1148,7 @@ parse_keystmt(ndcpcontext *pctx, dns_c_kdeflist_t *keys) { REQUIRE(DNS_C_NDCCTX_VALID(ctx)); REQUIRE(DNS_C_KDEFLIST_VALID(keys)); + UNUSED(ctx); if (!eat(pctx, L_KEY)) return (ISC_R_FAILURE); diff --git a/lib/isc/rwlock.c b/lib/isc/rwlock.c index 71b07a3f46b..3b40fc67e64 100644 --- a/lib/isc/rwlock.c +++ b/lib/isc/rwlock.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rwlock.c,v 1.26.4.1 2001/01/09 22:49:18 bwelling Exp $ */ +/* $Id: rwlock.c,v 1.26.4.2 2001/06/28 00:42:53 gson Exp $ */ #include @@ -301,6 +301,8 @@ isc_rwlock_unlock(isc_rwlock_t *rwl, isc_rwlocktype_t type) { REQUIRE(VALID_RWLOCK(rwl)); REQUIRE(rwl->type == type); + UNUSED(type); + INSIST(rwl->active > 0); rwl->active--; diff --git a/lib/isc/task.c b/lib/isc/task.c index eb6e87bd446..26b84329936 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: task.c,v 1.78.2.2 2001/02/07 22:36:20 gson Exp $ */ +/* $Id: task.c,v 1.78.2.3 2001/06/28 00:44:10 gson Exp $ */ /* * Principal Author: Bob Halley @@ -1011,6 +1011,7 @@ isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers, REQUIRE(managerp != NULL && *managerp == NULL); #ifndef ISC_PLATFORM_USETHREADS + UNUSED(workers); UNUSED(i); UNUSED(started);