From 1af767006101e563e4382f2275e48e0c8e23a8c6 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 20 Jun 2025 12:22:27 +0200 Subject: [PATCH] move NOLINT --- pdns/burtle.hh | 2 +- pdns/dnsname.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/burtle.hh b/pdns/burtle.hh index 65d1288354..7ec333d4b1 100644 --- a/pdns/burtle.hh +++ b/pdns/burtle.hh @@ -181,5 +181,5 @@ inline uint32_t burtleCI(const unsigned char* k, uint32_t length, uint32_t initv inline uint32_t burtleCI(const std::string &k, uint32_t initval) { - return burtleCI(reinterpret_cast(k.data()), k.length(), initval); + return burtleCI(reinterpret_cast(k.data()), k.length(), initval); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast): can't static_cast because of sign difference } diff --git a/pdns/dnsname.cc b/pdns/dnsname.cc index dfc3841787..fb76ae803a 100644 --- a/pdns/dnsname.cc +++ b/pdns/dnsname.cc @@ -847,7 +847,7 @@ std::string ZoneName::toStringFull(const std::string& separator, const bool trai size_t ZoneName::hash(size_t init) const { if (!d_variant.empty()) { - init = burtleCI(d_variant, init); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast): can't static_cast because of sign difference + init = burtleCI(d_variant, init); } return d_name.hash(init); -- 2.47.2