]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Silence a GCC 6.2 compiler warning 5029/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Feb 2017 14:16:29 +0000 (15:16 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Feb 2017 14:16:29 +0000 (15:16 +0100)
Closes #5007

(cherry picked from commit f226db2f2c12a2c0c16b3125a0438d9aca0d017c)

pdns/recpacketcache.cc

index 811d0a763d1289f206329e1220e9dc4837edd5ba..1d24831795c796248be2d8294e93789c00a94cc3 100644 (file)
@@ -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;