From aa5ca15a59efa4602efc5d78e17514dfe4edab16 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 29 Jul 2025 09:45:33 +0200 Subject: [PATCH] dnsdist: Yet another clang-tidy warning Signed-off-by: Remi Gacogne --- pdns/dnsdistdist/dnsdist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/dnsdist.cc b/pdns/dnsdistdist/dnsdist.cc index 3b1e3d8cac..57ac5ac98e 100644 --- a/pdns/dnsdistdist/dnsdist.cc +++ b/pdns/dnsdistdist/dnsdist.cc @@ -292,7 +292,7 @@ bool responseContentMatches(const PacketBuffer& response, const DNSName& qname, return false; } - // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast,cppcoreguidelines-pro-bounds-pointer-arithmetic) const std::string_view packetView(reinterpret_cast(response.data() + sizeof(dnsheader)), response.size() - sizeof(dnsheader)); if (qname.matches(packetView)) { size_t pos = sizeof(dnsheader) + qname.wirelength(); -- 2.47.3