src/cxx_supportlib/vendor-modified/boost/thread/once.hpp in passenger-5.3.3 vs src/cxx_supportlib/vendor-modified/boost/thread/once.hpp in passenger-5.3.4

- old
+ new

@@ -8,10 +8,16 @@ // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/thread/detail/config.hpp> + +#ifdef BOOST_MSVC +# pragma warning(push) +# pragma warning(disable: 4702) // unreachable code +#endif + #include <boost/thread/detail/platform.hpp> #if defined(BOOST_THREAD_PLATFORM_WIN32) #include <boost/thread/win32/once.hpp> #elif defined(BOOST_THREAD_PLATFORM_PTHREAD) #if defined BOOST_THREAD_ONCE_FAST_EPOCH @@ -38,7 +44,11 @@ call_once(flag,func); } } #include <boost/config/abi_suffix.hpp> + +#ifdef BOOST_MSVC +# pragma warning(pop) +#endif #endif