diff --git a/test/lightweight_test_fail6.cpp b/test/lightweight_test_fail6.cpp index f73a6df..4296f5c 100644 --- a/test/lightweight_test_fail6.cpp +++ b/test/lightweight_test_fail6.cpp @@ -8,6 +8,10 @@ // http://www.boost.org/LICENSE_1_0.txt // +#if defined(_MSC_VER) +# pragma warning(disable: 4702) // unreachable code +#endif + #include struct X diff --git a/test/no_exceptions_support_test.cpp b/test/no_exceptions_support_test.cpp index 7e227b9..6cce8ae 100644 --- a/test/no_exceptions_support_test.cpp +++ b/test/no_exceptions_support_test.cpp @@ -11,6 +11,7 @@ #if defined(_MSC_VER) # pragma warning(disable: 4530) // C++ exception handler used # pragma warning(disable: 4577) // noexcept used without /EHsc +# pragma warning(disable: 4702) // unreachable code #endif #include