Commit d5ec7f4c authored by Rob Latham's avatar Rob Latham

address "potentially used uninitialized" warnings

No Reviewer
parent e932ab81
......@@ -175,7 +175,7 @@ void ADIOI_GPFS_ReadStridedColl(ADIO_File fd, void *buf, int count,
st_offsets = (ADIO_Offset *) ADIOI_Malloc(nprocs*sizeof(ADIO_Offset));
end_offsets = (ADIO_Offset *) ADIOI_Malloc(nprocs*sizeof(ADIO_Offset));
ADIO_Offset my_count_size;
ADIO_Offset my_count_size=0;
/* One-sided aggregation needs the amount of data per rank as well because the difference in
* starting and ending offsets for 1 byte is 0 the same as 0 bytes so it cannot be distiguished.
*/
......
......@@ -176,7 +176,7 @@ void ADIOI_GPFS_WriteStridedColl(ADIO_File fd, const void *buf, int count,
st_offsets = (ADIO_Offset *) ADIOI_Malloc(nprocs*sizeof(ADIO_Offset));
end_offsets = (ADIO_Offset *) ADIOI_Malloc(nprocs*sizeof(ADIO_Offset));
ADIO_Offset my_count_size;
ADIO_Offset my_count_size=0;
/* One-sided aggregation needs the amount of data per rank as well because
* the difference in starting and ending offsets for 1 byte is 0 the same
* as 0 bytes so it cannot be distiguished.
......
......@@ -855,11 +855,11 @@ printf("gpfsmpio_onesided_always_rmw - first buffer pre-read for file offsets %l
/* These data structures are used for the derived datatype mpi_put
* in the gpfsmpio_write_aggmethod of 2 case.
*/
int *targetAggBlockLengths;
MPI_Aint *targetAggDisplacements, *sourceBufferDisplacements;
MPI_Datatype *targetAggDataTypes;
int *targetAggBlockLengths=NULL;
MPI_Aint *targetAggDisplacements=NULL, *sourceBufferDisplacements=NULL;
MPI_Datatype *targetAggDataTypes=NULL;
char *derivedTypePackedSourceBuffer;
char *derivedTypePackedSourceBuffer=NULL;
int derivedTypePackedSourceBufferOffset = 0;
int allocatedDerivedTypeArrays = 0;
ADIO_Offset amountOfDataWrittenThisRoundAgg = 0;
......@@ -1957,9 +1957,9 @@ printf("iAmUsedAgg - currentRoundFDStart initialized "
/* These data structures are used for the derived datatype mpi_get
* in the gpfsmpio_read_aggmethod of 2 case.
*/
int *sourceAggBlockLengths;
MPI_Aint *sourceAggDisplacements, *recvBufferDisplacements;
MPI_Datatype *sourceAggDataTypes;
int *sourceAggBlockLengths=NULL;
MPI_Aint *sourceAggDisplacements=NULL, *recvBufferDisplacements=NULL;
MPI_Datatype *sourceAggDataTypes=NULL;
char *derivedTypePackedSourceBuffer;
int derivedTypePackedSourceBufferOffset = 0;
int allocatedDerivedTypeArrays = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment