Skip to content

Commit cac0edb

Browse files
committed
fix compilation warnings
1 parent 4a1efcc commit cac0edb

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

examples/adios/read_metadata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,6 @@ int main(int argc, char** argv) {
130130

131131
MPI_Finalize();
132132

133-
return 0;
133+
return (nerrs > 0);
134134
}
135135

test/testcases/put_all_kinds.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ int test_io(const char *out_path,
233233
for (k=0; k<count[0]; k++)
234234
for (j=0; j<count[1]; j++)
235235
for (i=0; i<count[2]; i++) {
236-
int val = (start[0]+k)*gsize[1]*gsize[2]
237-
+ (start[1]+j)*gsize[2]
238-
+ (start[2]+i); // + 1000*(rank+1);
236+
MPI_Offset val = (start[0]+k)*gsize[1]*gsize[2]
237+
+ (start[1]+j)*gsize[2]
238+
+ (start[2]+i); // + 1000*(rank+1);
239239
buf[k*count[1]*count[2] + j*count[2] + i] = (double)(val % 128);
240240
}
241241
cbuf = (char *) malloc(bufsize);

test/testcases/tst_redefine.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ static int verbose;
7373
static int
7474
check_vars(MPI_Comm comm, int ncid, int *varid, int coll_io)
7575
{
76-
int i, j, nerrs=0, err, rank, *buf[4], bufLen[4], nvars, off_val;
77-
MPI_Offset start[2], count[2];
76+
int i, j, nerrs=0, err, rank, *buf[4], nvars, off_val;
77+
MPI_Offset start[2], count[2], bufLen[4];
7878

7979
MPI_Comm_rank(comm, &rank);
8080

@@ -294,9 +294,9 @@ tst_fmt(const char *out_path,
294294
MPI_Offset *info_align) /* [3] 0 means unset in MPI info */
295295
{
296296
int i, rank, nprocs, ncid, err, nerrs=0;
297-
int *buf[4], bufLen[4], dimid[3], varid[4];
297+
int *buf[4], dimid[3], varid[4];
298298
MPI_Info info=MPI_INFO_NULL;
299-
MPI_Offset start[2], count[2], increment, fix_v_size;
299+
MPI_Offset bufLen[4], start[2], count[2], increment, fix_v_size;
300300

301301
MPI_Offset hsize=0, old_hsize=-1, exp_hsize=-1;
302302
MPI_Offset extent=0, old_extent=-1, exp_extent=-1;

0 commit comments

Comments
 (0)