diff options
| author | Martin Hořeňovský | 2022-07-11 22:28:15 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-07-11 22:28:15 +0200 |
| commit | 3bd0c58878bb4d413a4ef9ed701ec08e407420ab (patch) | |
| tree | 7f46d26cdff9f3cd50505c7ea19a728dbb8fba59 | |
| parent | a63ad7455471dfa67275b866774f5fd0feb1cb81 (diff) | |
| download | catch3-3bd0c58878bb4d413a4ef9ed701ec08e407420ab.tar.gz | |
Fix Wunused-variable warning for MinGW
Closes #2132
| -rw-r--r-- | src/catch2/internal/catch_run_context.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/catch2/internal/catch_run_context.cpp b/src/catch2/internal/catch_run_context.cpp index e31f8a3f..c8b0b30e 100644 --- a/src/catch2/internal/catch_run_context.cpp +++ b/src/catch2/internal/catch_run_context.cpp @@ -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(); } |