Skip to content

Commit

Permalink
fix compiler warning: possibly used uninitialized
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Hammond <jeff.science@gmail.com>
  • Loading branch information
roblatham00 authored and jeffhammond committed May 6, 2015
1 parent deca416 commit a54435f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmarks/contiguous-bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int main(int argc, char ** argv) {

for (target_rank = 1; rank == 0 && target_rank < nproc; target_rank++) {
for (data_size = sizeof(double); data_size <= MAX_DATA_SIZE; data_size *= 2) {
double t_get, t_put, t_acc;
double t_get=0, t_put=0, t_acc=0;

for (test_iter = 0; test_iter < NUM_ITERATIONS + NUM_WARMUP_ITER; test_iter++) {
if (test_iter == NUM_WARMUP_ITER)
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/strided-bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int main(int argc, char ** argv) {

for (ydim = 1; ydim <= MAX_YDIM; ydim *= 2) {
const int data_size = xdim*ydim*sizeof(double);
double t_get, t_put, t_acc;
double t_get=0.0, t_put=0.0, t_acc=0.0;

count[1] = ydim;

Expand Down
2 changes: 1 addition & 1 deletion tests/ARMCI_AccS_latency.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main(int argc, char **argv)
size_t xdim, ydim;
unsigned long bufsize;
double **buffer, *src_buf;
double t_start, t_stop;
double t_start=0.0, t_stop;
int count[2], src_stride, trg_stride, stride_level;
double scaling;
int provided;
Expand Down
2 changes: 1 addition & 1 deletion tests/ARMCI_PutS_latency.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int main(int argc, char *argv[]) {
int xdim, ydim;
long bufsize;
double **buffer;
double t_start, t_stop;
double t_start=0.0, t_stop=0.0;
int count[2], src_stride, trg_stride, stride_level, peer;
double expected, actual;
int provided;
Expand Down

0 comments on commit a54435f

Please sign in to comment.