From f94db671f63498348a29ce7d8f8ef72785a84be4 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 1 Nov 2021 04:17:51 +0200 Subject: [PATCH] Disable C4702 in lightweight_test_fail6, no_exceptions_support_test --- test/lightweight_test_fail6.cpp | 4 ++++ test/no_exceptions_support_test.cpp | 1 + 2 files changed, 5 insertions(+) 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