From b26ff5312a4f260bc7de765ac3c05cb34d220661 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 29 Jun 2023 12:52:32 +0200 Subject: [PATCH] Take one suggestion form review. The others keep on producing clang-tidy issues. --- pdns/recursordist/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/pdns_recursor.cc b/pdns/recursordist/pdns_recursor.cc index 2ae64233b7..927cf06dd8 100644 --- a/pdns/recursordist/pdns_recursor.cc +++ b/pdns/recursordist/pdns_recursor.cc @@ -908,7 +908,7 @@ static uint32_t capPacketCacheTTL(const struct dnsheader& hdr, uint32_t ttl, boo void startDoResolve(void* arg) // NOLINT(readability-function-cognitive-complexity): https://github.com/PowerDNS/pdns/issues/12791 { - auto comboWriter = std::unique_ptr(reinterpret_cast(arg)); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast) + auto comboWriter = std::unique_ptr(static_cast(arg)); SyncRes resolver(comboWriter->d_now); try { if (t_queryring) { -- 2.47.2