From: Remi Gacogne Date: Tue, 27 May 2025 10:29:05 +0000 (+0200) Subject: auth: Fix a couple warnings reported by g++ 15.1.1 X-Git-Tag: dnsdist-2.0.0-beta1~62^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15595%2Fhead;p=thirdparty%2Fpdns.git auth: Fix a couple warnings reported by g++ 15.1.1 --- 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;