From 3c3f3ce0db6fb44385c8445345784b1e04871771 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 23 Sep 2016 17:09:11 +0200 Subject: [PATCH] Silence a GCC 6.2 compiler warning --- pdns/recpacketcache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2