2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

Reviewed.

use UNUSED() macros.
This commit is contained in:
David Lawrence 2000-03-16 02:31:14 +00:00
parent ecd3b66f8c
commit 659c68b446

View File

@ -15,7 +15,9 @@
* SOFTWARE. * SOFTWARE.
*/ */
/* $Id: mr_9.c,v 1.18 2000/02/03 23:43:03 halley Exp $ */ /* $Id: mr_9.c,v 1.19 2000/03/16 02:31:14 tale Exp $ */
/* Reviewed: Wed Mar 15 21:30:35 EST 2000 by tale */
#ifndef RDATA_GENERIC_MR_9_C #ifndef RDATA_GENERIC_MR_9_C
#define RDATA_GENERIC_MR_9_C #define RDATA_GENERIC_MR_9_C
@ -31,7 +33,7 @@ fromtext_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
REQUIRE(type == 9); REQUIRE(type == 9);
rdclass = rdclass; /*unused*/ UNUSED(rdclass);
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE)); RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
@ -43,8 +45,7 @@ fromtext_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
} }
static inline isc_result_t static inline isc_result_t
totext_mr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, totext_mr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx, isc_buffer_t *target)
isc_buffer_t *target)
{ {
isc_region_t region; isc_region_t region;
dns_name_t name; dns_name_t name;
@ -73,7 +74,7 @@ fromwire_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
REQUIRE(type == 9); REQUIRE(type == 9);
rdclass = rdclass; /*unused*/ UNUSED(rdclass);
if (dns_decompress_edns(dctx) >= 1 || !dns_decompress_strict(dctx)) if (dns_decompress_edns(dctx) >= 1 || !dns_decompress_strict(dctx))
dns_decompress_setmethods(dctx, DNS_COMPRESS_ALL); dns_decompress_setmethods(dctx, DNS_COMPRESS_ALL);
@ -130,24 +131,21 @@ static inline isc_result_t
fromstruct_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source, fromstruct_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
isc_buffer_t *target) isc_buffer_t *target)
{ {
REQUIRE(type == 9); REQUIRE(type == 9);
rdclass = rdclass; /*unused*/ UNUSED(rdclass);
UNUSED(source);
source = source; UNUSED(target);
target = target;
return (DNS_R_NOTIMPLEMENTED); return (DNS_R_NOTIMPLEMENTED);
} }
static inline isc_result_t static inline isc_result_t
tostruct_mr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) { tostruct_mr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
REQUIRE(rdata->type == 9); REQUIRE(rdata->type == 9);
target = target; UNUSED(target);
mctx = mctx; UNUSED(mctx);
return (DNS_R_NOTIMPLEMENTED); return (DNS_R_NOTIMPLEMENTED);
} }
@ -164,8 +162,8 @@ additionaldata_mr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
{ {
REQUIRE(rdata->type == 9); REQUIRE(rdata->type == 9);
(void)add; UNUSED(add);
(void)arg; UNUSED(arg);
return (DNS_R_SUCCESS); return (DNS_R_SUCCESS);
} }