From: Pieter Lexis Date: Tue, 14 Feb 2017 14:16:29 +0000 (+0100) Subject: Silence a GCC 6.2 compiler warning X-Git-Tag: auth-4.0.4-rc1~24^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75f34edfa82d744cb9458ae1bd8bebfdad00bf17;p=thirdparty%2Fpdns.git Silence a GCC 6.2 compiler warning Closes #5007 (cherry picked from commit f226db2f2c12a2c0c16b3125a0438d9aca0d017c) --- diff --git a/pdns/recpacketcache.cc b/pdns/recpacketcache.cc index 811d0a763d..1d24831795 100644 --- a/pdns/recpacketcache.cc +++ b/pdns/recpacketcache.cc @@ -211,7 +211,7 @@ uint64_t RecursorPacketCache::size() uint64_t RecursorPacketCache::bytes() { uint64_t sum=0; - for(const struct Entry& e : d_packetCache) { + for(const auto& e : d_packetCache) { sum += sizeof(e) + e.d_packet.length() + 4; } return sum;