diff --git a/rmw_zenoh_cpp/src/detail/rmw_context_impl_s.hpp b/rmw_zenoh_cpp/src/detail/rmw_context_impl_s.hpp index 1e46d6af..813d7723 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_context_impl_s.hpp +++ b/rmw_zenoh_cpp/src/detail/rmw_context_impl_s.hpp @@ -28,6 +28,10 @@ #include "rmw/ret_types.h" #include "rmw/types.h" +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable: 4099) +#endif ///============================================================================= class rmw_context_impl_s final { @@ -95,6 +99,8 @@ class rmw_context_impl_s final private: std::shared_ptr data_{nullptr}; }; - +#ifdef _MSC_VER +#pragma warning(pop) +#endif #endif // DETAIL__RMW_CONTEXT_IMPL_S_HPP_