summaryrefslogtreecommitdiff
path: root/boost/thread/once.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/thread/once.hpp')
-rw-r--r--boost/thread/once.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/boost/thread/once.hpp b/boost/thread/once.hpp
index 9fcfb53339..22f95139ae 100644
--- a/boost/thread/once.hpp
+++ b/boost/thread/once.hpp
@@ -10,6 +10,12 @@
// 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>
@@ -41,4 +47,8 @@ inline void call_once(Function func,once_flag& flag)
#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_MSVC
+# pragma warning(pop)
+#endif
+
#endif