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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user