Skip to content

Commit 52770a5

Browse files
committed
compile warning of unintialized variables
1 parent db885e5 commit 52770a5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

utils/dat2decomp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int add_decomp(int ncid,
8686
int varid[6], *nreqs, **off, **len, *fill_starts, dim_nprocs;
8787
int total_nreqs, max_nreqs, min_nreqs, maxlen, minlen;
8888
MPI_Offset k, gsize, *dims, start, count;
89-
int *raw_nreqs, **raw_off, total_raw_nreqs;
89+
int *raw_nreqs=NULL, **raw_off=NULL, total_raw_nreqs=0;
9090
MPI_Offset raw_start;
9191
int *dims_C;
9292

utils/dat2nc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int add_decomp(int ncid, const char *infname, int label) {
8484
int varid[6], *nreqs, **off, **len, *fill_starts, dim_nprocs;
8585
int *map, total_nreqs, max_nreqs, min_nreqs, maxlen, minlen;
8686
MPI_Offset k, gsize, *dims, *dims_C, start, count;
87-
int *raw_nreqs, **raw_off, total_raw_nreqs;
87+
int *raw_nreqs=NULL, **raw_off=NULL, total_raw_nreqs=0;
8888
MPI_Offset raw_start;
8989

9090
fd = fopen(infname, "r");

0 commit comments

Comments
 (0)