From 29aa703dd62376045bed12abfb6f29cd7efd070b Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Sat, 13 May 2000 20:42:59 +0000 Subject: [PATCH] Fixed IRIX warnings: "rbtdb.c", line 1579: remark(1552): parameter "now" was set but never used "rbtdb.c", line 2888: remark(1552): parameter "version" was set but never used by using UNUSED() rather than setting variables to unused values. --- lib/dns/rbtdb.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 84d759994a..d481c8673d 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -1598,10 +1598,9 @@ zone_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version, REQUIRE(VALID_RBTDB(search.rbtdb)); /* - * We don't care about 'now'. We set it to zero so compilers won't - * complain about it being unused. + * We don't care about 'now'. */ - now = 0; + UNUSED(now); /* * If the caller didn't supply a version, attach to the current @@ -2899,7 +2898,7 @@ cache_findrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version, REQUIRE(VALID_RBTDB(rbtdb)); REQUIRE(type != dns_rdatatype_any); - version = NULL; /* Keep compilers quiet. */ + UNUSED(version); result = ISC_R_SUCCESS;