diff --git a/include/boost/interprocess/detail/os_file_functions.hpp b/include/boost/interprocess/detail/os_file_functions.hpp index e7f81a5..6ff4cb5 100644 --- a/include/boost/interprocess/detail/os_file_functions.hpp +++ b/include/boost/interprocess/detail/os_file_functions.hpp @@ -264,7 +264,8 @@ inline bool try_acquire_file_lock(file_handle_t hnd, bool &acquired) acquired = false, true : false; } - return (acquired = true); + acquired = true; + return true; } inline bool release_file_lock(file_handle_t hnd) @@ -293,7 +294,9 @@ inline bool try_acquire_file_lock_sharable(file_handle_t hnd, bool &acquired) return winapi::get_last_error() == winapi::error_lock_violation ? acquired = false, true : false; } - return (acquired = true); + + acquired = true; + return true; } inline bool release_file_lock_sharable(file_handle_t hnd)