mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 04:45:39 +02:00

The REQUIRE_THROWS and CATCH_REQUIRE_THROWS macros have
a subtle inconsistency in their implementation which can
cause a warning if [-Wunused-value] is used.
This commit changes CATCH_REQUIRE_THROWS so it has the
same implementation as REQUIRE_THROWS
It looks like REQUIRE_THROWS was change in commit
fae0fa4ec
but not CATCH_REQUIRE_THROWS.
Similar changes for CATCH_CHECK_THROWS