mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
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:
parent
1656e3806b
commit
b37a3e249a
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user