From: Remi Gacogne Date: Thu, 26 Jan 2023 10:22:53 +0000 (+0100) Subject: dnsdist: Fix "unused variable 'now'" warning in test-dnsdistpacketcache_cc.cc X-Git-Tag: dnsdist-1.8.0-rc1~78^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c0d9536a5171947443497005696dbb892e1080c;p=thirdparty%2Fpdns.git dnsdist: Fix "unused variable 'now'" warning in test-dnsdistpacketcache_cc.cc --- diff --git a/pdns/test-dnsdistpacketcache_cc.cc b/pdns/test-dnsdistpacketcache_cc.cc index b615ae7275..4bad3d0dbc 100644 --- a/pdns/test-dnsdistpacketcache_cc.cc +++ b/pdns/test-dnsdistpacketcache_cc.cc @@ -1047,7 +1047,6 @@ BOOST_AUTO_TEST_CASE(test_PacketCacheXFR) { const std::set 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;