]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix "unused variable 'now'" warning in test-dnsdistpacketcache_cc.cc 12476/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 26 Jan 2023 10:22:53 +0000 (11:22 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 26 Jan 2023 10:22:53 +0000 (11:22 +0100)
pdns/test-dnsdistpacketcache_cc.cc

index b615ae72756c0b10cb12db86c157c16270d245cc..4bad3d0dbcf6ea46b04dc5d33e07f89ebc00a21b 100644 (file)
@@ -1047,7 +1047,6 @@ BOOST_AUTO_TEST_CASE(test_PacketCacheXFR) {
   const std::set<QType> xfrTypes = { QType::AXFR, QType::IXFR };
   for (const auto& type : xfrTypes) {
     bool dnssecOK = false;
-    const time_t now = time(nullptr);
     InternalQueryState ids;
     ids.qtype = type;
     ids.qclass = QClass::IN;