Skip to content

Commit 3a0d3bc

Browse files
committed
Muzzle -Wdeclaration-after-statement in tests/communicator.c
1 parent f3253d6 commit 3a0d3bc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/communicator.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ extern void teardown(void);
2121
*/
2222
void setup_comm(void)
2323
{
24-
setup();
2524
int err;
25+
gpucommCliqueId comm_id;
26+
27+
setup();
2628

2729
MPI_Barrier(MPI_COMM_WORLD);
28-
gpucommCliqueId comm_id;
30+
2931
err = gpucomm_gen_clique_id(ctx, &comm_id);
3032
// Has successfully got a unique comm id.
3133
ck_assert_int_eq(err, GA_NO_ERROR);

0 commit comments

Comments
 (0)