From c5a11b21da4cbaebdd4294acedc3a85c7fcf2454 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 27 May 2025 12:29:05 +0200 Subject: [PATCH] auth: Fix a couple warnings reported by g++ 15.1.1 --- pdns/ixfrdist.cc | 2 +- pdns/tcpreceiver.cc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pdns/ixfrdist.cc b/pdns/ixfrdist.cc index 91f4e8fd94..d50c5597db 100644 --- a/pdns/ixfrdist.cc +++ b/pdns/ixfrdist.cc @@ -418,7 +418,7 @@ static void updateThread(const string& workdir, const uint16_t& keep, const uint g_log< soa; - uint32_t soaTTL; + uint32_t soaTTL{0}; { string fname = workdir + "/" + domain.toString() + "/" + std::to_string(serial); loadSOAFromDisk(domain, fname, soa, soaTTL); diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index 6a218b94ba..22b002bb59 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -1023,8 +1023,7 @@ send: typedef map nsecxrepo_t; nsecxrepo_t nsecxrepo; - // std::move(targetZone) below is ok as it is no longer used afterwards - ChunkedSigningPipe csp(std::move(targetZone), (securedZone && !presignedZone), ::arg().asNum("signing-threads", 1), ::arg().mustDo("workaround-11804") ? 1 : 100); + ChunkedSigningPipe csp(targetZone, (securedZone && !presignedZone), ::arg().asNum("signing-threads", 1), ::arg().mustDo("workaround-11804") ? 1 : 100); DNSName keyname; unsigned int udiff; -- 2.47.2