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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4593%2Fhead;p=thirdparty%2Fpdns.git Silence a GCC 6.2 compiler warning --- 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;