Skip to content

Commit

Permalink
Fix Wunused-variable warning for MinGW
Browse files Browse the repository at this point in the history
Closes #2132
  • Loading branch information
horenmar committed Jul 11, 2022
1 parent a63ad74 commit 3bd0c58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/catch2/internal/catch_run_context.cpp
Expand Up @@ -500,6 +500,11 @@ namespace Catch {
// before running the tests themselves, or the binary can crash
// without failed test being reported.
FatalConditionHandlerGuard _(&m_fatalConditionhandler);
// We keep having issue where some compilers warn about an unused
// variable, even though the type has non-trivial constructor and
// destructor. This is annoying and ugly, but it makes them stfu.
(void)_;

m_activeTestCase->invoke();
}

Expand Down

0 comments on commit 3bd0c58

Please sign in to comment.