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

View File

@ -500,6 +500,11 @@ namespace Catch {
// before running the tests themselves, or the binary can crash // before running the tests themselves, or the binary can crash
// without failed test being reported. // without failed test being reported.
FatalConditionHandlerGuard _(&m_fatalConditionhandler); 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(); m_activeTestCase->invoke();
} }