Fix Wunused-variable warning for MinGW

Closes #2132
This commit is contained in:
Martin Hořeňovský 2022-07-11 22:28:15 +02:00
parent a63ad74554
commit 3bd0c58878
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}