From e87cd333a8f2e7326ced282b6e03ca97e985b876 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 2 Oct 2018 18:39:41 +0300 Subject: [PATCH] Work around 'unused variable' MSVC warning --- include/boost/system/detail/system_category_win32.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/system/detail/system_category_win32.hpp b/include/boost/system/detail/system_category_win32.hpp index 323eae7..8a86e81 100644 --- a/include/boost/system/detail/system_category_win32.hpp +++ b/include/boost/system/detail/system_category_win32.hpp @@ -170,6 +170,7 @@ inline std::string system_category_message_win32( int ev ) } local_free lf_ = { lpMsgBuf }; + (void)lf_; UINT_ const code_page = message_cp_win32();