Skip to content

Commit

Permalink
Merge pull request #407 from boostorg/msvc_4702
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland authored Dec 19, 2023
2 parents e41c4e1 + 014310f commit 8b078be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/boost/test/impl/test_tools.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ format_report( OutStream& os, assertion_result const& pr, unit_test::lazy_ostrea

//____________________________________________________________________________//

#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable : 4702) // There is intentionally unreachable code
#endif

bool
report_assertion( assertion_result const& ar,
lazy_ostream const& assertion_descr,
Expand Down Expand Up @@ -411,6 +416,10 @@ report_assertion( assertion_result const& ar,
return true;
}

#ifdef BOOST_MSVC
#pragma warning(pop)
#endif

//____________________________________________________________________________//

assertion_result
Expand Down

0 comments on commit 8b078be

Please sign in to comment.