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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-07-11 22:28:15 +0200
committerMartin Hořeňovský2022-07-11 22:28:15 +0200
commit3bd0c58878bb4d413a4ef9ed701ec08e407420ab (patch)
tree7f46d26cdff9f3cd50505c7ea19a728dbb8fba59 /src
parenta63ad7455471dfa67275b866774f5fd0feb1cb81 (diff)
downloadcatch3-3bd0c58878bb4d413a4ef9ed701ec08e407420ab.tar.gz
Fix Wunused-variable warning for MinGW
Closes #2132
Diffstat (limited to 'src')
-rw-r--r--src/catch2/internal/catch_run_context.cpp5
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();
}