From ca7561844be6fac168d4b7bb18206766da804857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 14 Apr 2025 21:07:17 +0200 Subject: [PATCH] Fixes #259 ("Warning on cast from farproc_t in Clang 19.1 for Windows") --- include/boost/interprocess/detail/win32_api.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/interprocess/detail/win32_api.hpp b/include/boost/interprocess/detail/win32_api.hpp index 44b770d..b591ef6 100644 --- a/include/boost/interprocess/detail/win32_api.hpp +++ b/include/boost/interprocess/detail/win32_api.hpp @@ -1038,7 +1038,7 @@ struct function_address_holder } public: - static farproc_t get(const unsigned int id) + static void* get(const unsigned int id) { BOOST_ASSERT(id < (unsigned int)NumFunction); for(unsigned i = 0; FunctionStates[id] < 2; ++i){ @@ -1054,7 +1054,7 @@ struct function_address_holder sleep_tick(); } } - return FunctionAddresses[id]; + return reinterpret_cast(FunctionAddresses[id]); } };