From: W.C.A. Wijngaards Date: Wed, 5 Feb 2014 15:18:15 +0000 (+0100) Subject: Fix warning about unused variable. X-Git-Tag: release-1.7.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d26342f5d5c3b58b36c67a887f7eebb4e2c74d9a;p=thirdparty%2Fldns.git Fix warning about unused variable. --- diff --git a/resolver.c b/resolver.c index 16efc90f..b7d3e29e 100644 --- a/resolver.c +++ b/resolver.c @@ -1276,7 +1276,6 @@ ldns_axfr_next(ldns_resolver *resolver) ldns_rr *cur_rr; uint8_t *packet_wire; size_t packet_wire_size; - ldns_lookup_table *rcode; ldns_status status; /* check if start() has been called */ @@ -1336,8 +1335,10 @@ ldns_axfr_next(ldns_resolver *resolver) return NULL; } else if (ldns_pkt_get_rcode(resolver->_cur_axfr_pkt) != 0) { - rcode = ldns_lookup_by_id(ldns_rcodes, (int) ldns_pkt_get_rcode(resolver->_cur_axfr_pkt)); #ifdef STDERR_MSGS + ldns_lookup_table *rcode = ldns_lookup_by_id( + ldns_rcodes,(int) ldns_pkt_get_rcode( + resolver->_cur_axfr_pkt)); if (rcode) { fprintf(stderr, "Error in AXFR: %s\n", rcode->name);