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-rc1~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01b4bacd67234956927f0b8ceec0b436930e6cb2;p=thirdparty%2Fldns.git Fix warning about unused variable. --- diff --git a/resolver.c b/resolver.c index 97199846..987ca5c5 100644 --- a/resolver.c +++ b/resolver.c @@ -1286,7 +1286,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 */ @@ -1346,8 +1345,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);