From 46a4883350aef5fe75798f2505d19821eeb3c3da Mon Sep 17 00:00:00 2001 From: zhekemist Date: Wed, 21 Aug 2024 23:04:55 +0200 Subject: [PATCH] Fix findend regression test --- .../algorithms/tests/regressions/minimal_findend.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libs/core/algorithms/tests/regressions/minimal_findend.cpp b/libs/core/algorithms/tests/regressions/minimal_findend.cpp index 2512610611cb..3d2ee1b1cef5 100644 --- a/libs/core/algorithms/tests/regressions/minimal_findend.cpp +++ b/libs/core/algorithms/tests/regressions/minimal_findend.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include namespace test { @@ -69,11 +70,12 @@ void find_end_failing_test() bool caught_exception = false; try { - std::find_end(decorated_iterator(std::begin(c), - []() { throw std::runtime_error("error"); }), - decorated_iterator( - std::end(c), []() { throw std::runtime_error("error"); }), - std::begin(h), std::end(h)); + std::ignore = + std::find_end(decorated_iterator(std::begin(c), + []() { throw std::runtime_error("error"); }), + decorated_iterator( + std::end(c), []() { throw std::runtime_error("error"); }), + std::begin(h), std::end(h)); // should never reach this point HPX_TEST(false);