Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-09-15 18:57:56 +0200
committerMartin Hořeňovský2021-09-15 18:57:56 +0200
commitf314fa1f8c9576f1879fb0a8a9b038f1108599c2 (patch)
tree9a21ba918ff0e1e96ac0d9711825cfd97594e726 /src/catch2/internal
parent013edc208bb7c9f448ab122a81ce01a3ef640543 (diff)
downloadcatch3-f314fa1f8c9576f1879fb0a8a9b038f1108599c2.tar.gz
assertionEnded event in reporters no longer returns bool
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_run_context.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/catch2/internal/catch_run_context.cpp b/src/catch2/internal/catch_run_context.cpp
index 1e4cc6b1..b8e74e5f 100644
--- a/src/catch2/internal/catch_run_context.cpp
+++ b/src/catch2/internal/catch_run_context.cpp
@@ -249,9 +249,7 @@ namespace Catch {
m_lastAssertionPassed = true;
}
- // We have no use for the return value (whether messages should be cleared), because messages were made scoped
- // and should be let to clear themselves out.
- static_cast<void>(m_reporter->assertionEnded(AssertionStats(result, m_messages, m_totals)));
+ m_reporter->assertionEnded(AssertionStats(result, m_messages, m_totals));
if (result.getResultType() != ResultWas::Warning)
m_messageScopes.clear();