minicheck.c: Fix volatile variables (#235)

This commit is contained in:
Marco Maggi 2018-10-30 09:23:34 +01:00 committed by Sebastian Pipping
parent 42d904741b
commit b306ee963f

View File

@ -165,12 +165,12 @@ void
srunner_run_all(SRunner *runner, int verbosity)
{
Suite *suite;
TCase *tc;
TCase * volatile tc;
assert(runner != NULL);
suite = runner->suite;
tc = suite->tests;
while (tc != NULL) {
int i;
volatile int i;
for (i = 0; i < tc->ntests; ++i) {
runner->nchecks++;