From b1082d03486506bb2ebd274843336ba70c1736ae Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Tue, 24 Nov 2009 10:56:25 +0100 Subject: [PATCH] Suppress MSVC unreachable code warning. --- luabind/object.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/luabind/object.hpp b/luabind/object.hpp index 25784d0..92284f3 100644 --- a/luabind/object.hpp +++ b/luabind/object.hpp @@ -973,6 +973,11 @@ namespace detail return cv.apply(interpreter, LUABIND_DECORATE_TYPE(T), -1); } +# ifdef BOOST_MSVC +# pragma warning(push) +# pragma warning(disable:4702) // unreachable code +# endif + template struct throw_error_policy { @@ -992,6 +997,10 @@ namespace detail } }; +# ifdef BOOST_MSVC +# pragma warning(pop) +# endif + template struct nothrow_error_policy { -- 2.11.4.GIT