2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

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.
This commit is contained in:
David Lawrence
2000-05-13 20:42:59 +00:00
parent 421cb938fd
commit 29aa703dd6

View File

@@ -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;