]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: remove unused var in tcpreceiver.cc 12758/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 18 Apr 2023 00:15:40 +0000 (02:15 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 18 Apr 2023 00:15:42 +0000 (02:15 +0200)
tcpreceiver.cc:1005:7: warning: variable 'records' set but not used [-Wunused-but-set-variable]
  int records=0;

pdns/tcpreceiver.cc

index 7e7765241edf28fb31f36bbc52a7c6ef35b7b9c3..3341b11392613b77163d529226b94cd4ab8a186e 100644 (file)
@@ -993,9 +993,7 @@ send:
   unsigned int udiff;
   DTime dt;
   dt.set();
-  int records=0;
   for(DNSZoneRecord &loopZRR :  zrrs) {
-    records++;
     if(securedZone && (loopZRR.auth || loopZRR.dr.d_type == QType::NS)) {
       if (NSEC3Zone || loopZRR.dr.d_type) {
         if (presignedZone && NSEC3Zone && loopZRR.dr.d_type == QType::RRSIG && getRR<RRSIGRecordContent>(loopZRR.dr)->d_type == QType::NSEC3) {