Skip to content

Commit

Permalink
Guarantee nodiscard warning override in exception test.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Oct 22, 2024
1 parent f173afd commit c13f745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/block_arena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ BOOST_AUTO_TEST_CASE(block_arena__start__multiple_overflow__throws_allocation_ex
accessor instance{ two };

BC_PUSH_WARNING(DISCARDING_NON_DISCARDABLE)
BOOST_REQUIRE_THROW(instance.start(max_size_t), allocation_exception);
BOOST_REQUIRE_THROW(static_cast<void>(instance.start(max_size_t)), allocation_exception);
BC_POP_WARNING()
}

Expand Down

0 comments on commit c13f745

Please sign in to comment.