From 8b0bc70db73b48d833a3b5791e55921768cf6932 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 31 Mar 2025 08:33:08 -0500 Subject: Remove reinterpret_cast usage in favor of std::bit_cast. --- test/test_common.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/test_common.cpp') diff --git a/test/test_common.cpp b/test/test_common.cpp index 03c5dff..926bd49 100644 --- a/test/test_common.cpp +++ b/test/test_common.cpp @@ -105,8 +105,7 @@ FudStatus removeRecursive(StringView path) } constexpr int maxOpenFd = 64; - // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) - auto status = nftw(reinterpret_cast(path.data()), unlink_cb, maxOpenFd, FTW_DEPTH | FTW_PHYS); + auto status = nftw(std::bit_cast(path.data()), unlink_cb, maxOpenFd, FTW_DEPTH | FTW_PHYS); if (status == 0) { return FudStatus::Success; } -- cgit v1.2.3