From: Charles-Henri Bruyand Date: Thu, 13 Mar 2025 12:17:33 +0000 (+0100) Subject: fix a clang-tidy warning X-Git-Tag: dnsdist-2.0.0-alpha1~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15151%2Fhead;p=thirdparty%2Fpdns.git fix a clang-tidy warning --- diff --git a/pdns/dnstap.cc b/pdns/dnstap.cc index dffd30d27a..a20957513c 100644 --- a/pdns/dnstap.cc +++ b/pdns/dnstap.cc @@ -132,6 +132,7 @@ DnstapMessage::DnstapMessage(std::string&& buffer, DnstapMessage::MessageType ty } } if (httpProtocol) { + // NOLINTNEXTLINE(bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions) pbf_message.add_enum(DnstapMessageFields::http_protocol, static_cast(*httpProtocol)); }