summaryrefslogtreecommitdiff
path: root/boost/proto/detail/ignore_unused.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/proto/detail/ignore_unused.hpp')
-rw-r--r--boost/proto/detail/ignore_unused.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/boost/proto/detail/ignore_unused.hpp b/boost/proto/detail/ignore_unused.hpp
index dda1ca0fe2..6004b83d98 100644
--- a/boost/proto/detail/ignore_unused.hpp
+++ b/boost/proto/detail/ignore_unused.hpp
@@ -12,6 +12,11 @@
#include <boost/config.hpp>
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+# pragma warning(push)
+# pragma warning(disable : 4714) // function 'xxx' marked as __forceinline not inlined
+#endif
+
namespace boost { namespace proto
{
namespace detail
@@ -22,4 +27,8 @@ namespace boost { namespace proto
}
}}
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+# pragma warning(pop)
+#endif
+
#endif