From 1da38922395c1a0cbb7be4419c6abdbc296bd726 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 25 Mar 2019 19:50:33 +0200 Subject: [PATCH] Disable C4702 (unreachable code) for the throwing tests --- test/variant_convert_construct_throw.cpp | 4 ++++ test/variant_copy_assign_throw.cpp | 4 ++++ test/variant_copy_construct_throw.cpp | 4 ++++ test/variant_move_assign_throw.cpp | 4 ++++ test/variant_move_construct_throw.cpp | 4 ++++ test/variant_subset.cpp | 4 ++++ test/variant_valueless.cpp | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/test/variant_convert_construct_throw.cpp b/test/variant_convert_construct_throw.cpp index 79757fc..bb53d7c 100644 --- a/test/variant_convert_construct_throw.cpp +++ b/test/variant_convert_construct_throw.cpp @@ -6,6 +6,10 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#if defined(_MSC_VER) +# pragma warning( disable: 4702 ) // unreachable code +#endif + #include #include #include diff --git a/test/variant_copy_assign_throw.cpp b/test/variant_copy_assign_throw.cpp index 7f98f70..a13dccb 100644 --- a/test/variant_copy_assign_throw.cpp +++ b/test/variant_copy_assign_throw.cpp @@ -6,6 +6,10 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#if defined(_MSC_VER) +# pragma warning( disable: 4702 ) // unreachable code +#endif + #include #include #include diff --git a/test/variant_copy_construct_throw.cpp b/test/variant_copy_construct_throw.cpp index 88937c2..81b44d9 100644 --- a/test/variant_copy_construct_throw.cpp +++ b/test/variant_copy_construct_throw.cpp @@ -6,6 +6,10 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#if defined(_MSC_VER) +# pragma warning( disable: 4702 ) // unreachable code +#endif + #include #include #include diff --git a/test/variant_move_assign_throw.cpp b/test/variant_move_assign_throw.cpp index 6e65518..c1df594 100644 --- a/test/variant_move_assign_throw.cpp +++ b/test/variant_move_assign_throw.cpp @@ -6,6 +6,10 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#if defined(_MSC_VER) +# pragma warning( disable: 4702 ) // unreachable code +#endif + #include #include #include diff --git a/test/variant_move_construct_throw.cpp b/test/variant_move_construct_throw.cpp index 01b2b02..aabf7d2 100644 --- a/test/variant_move_construct_throw.cpp +++ b/test/variant_move_construct_throw.cpp @@ -6,6 +6,10 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#if defined(_MSC_VER) +# pragma warning( disable: 4702 ) // unreachable code +#endif + #include #include #include diff --git a/test/variant_subset.cpp b/test/variant_subset.cpp index 86cd505..90c9bc2 100644 --- a/test/variant_subset.cpp +++ b/test/variant_subset.cpp @@ -6,6 +6,10 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#if defined(_MSC_VER) +# pragma warning( disable: 4702 ) // unreachable code +#endif + #include #include #include diff --git a/test/variant_valueless.cpp b/test/variant_valueless.cpp index 6a13086..176c674 100644 --- a/test/variant_valueless.cpp +++ b/test/variant_valueless.cpp @@ -6,6 +6,10 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#if defined(_MSC_VER) +# pragma warning( disable: 4702 ) // unreachable code +#endif + #include #include #include