Skip to content

Commit f3253d6

Browse files
committed
Muzzle -Wdeclaration-after-statement in tests/main.c.
1 parent 4614985 commit f3253d6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tests/main.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ extern Suite *get_suite(void);
1515

1616
int main(int argc, char *argv[])
1717
{
18+
int number_failed;
19+
Suite *s;
20+
SRunner *sr;
21+
1822
#ifdef TEST_COLLECTIVES
1923
MPI_Init(&argc, &argv);
2024
MPI_Comm_size(MPI_COMM_WORLD, &comm_ndev);
@@ -29,9 +33,8 @@ int main(int argc, char *argv[])
2933
dev_name = argv[comm_rank + 1]; // Set a gpu for this process.
3034
#endif // TEST_COLLECTIVES
3135

32-
int number_failed;
33-
Suite *s = get_suite();
34-
SRunner *sr = srunner_create(s);
36+
s = get_suite();
37+
sr = srunner_create(s);
3538
#ifdef TEST_COLLECTIVES
3639
// Check by default forks to another (non mpi registered) process in order to
3740
// run tests. Using MPI inside tests means we must disable this.

0 commit comments

Comments
 (0)