Commit 29aa703d authored by David Lawrence's avatar David Lawrence
Browse files

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.
parent 421cb938
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment