From f226db2f2c12a2c0c16b3125a0438d9aca0d017c 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 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; -- 2.49.0