From: Pieter Lexis Date: Fri, 23 Sep 2016 15:09:11 +0000 (+0200) Subject: Silence a GCC 6.2 compiler warning X-Git-Tag: rec-4.0.4~26^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c3f3ce0db6fb44385c8445345784b1e04871771;p=pdns Silence a GCC 6.2 compiler warning --- diff --git a/pdns/recpacketcache.cc b/pdns/recpacketcache.cc index 811d0a763..1d2483179 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;