test-runner: Fix compiler warning

Making the variable volatile avoids a "variable ‘failure’ might be
clobbered by ‘longjmp’" warning (or error when compiling with
-Werror) that's triggered via -Wextra.
This commit is contained in:
Tobias Brunner
2022-07-18 12:42:24 +02:00
parent 1656e3806b
commit b37a3e249a
+1 -1
View File
@@ -289,7 +289,7 @@ static bool call_fixture(test_case_t *tcase, bool up, int i)
{
enumerator_t *enumerator;
test_fixture_t *fixture;
bool failure = FALSE;
volatile bool failure = FALSE;
enumerator = array_create_enumerator(tcase->fixtures);
while (enumerator->enumerate(enumerator, &fixture))