Skip to content

Commit 34377a1

Browse files
committed
warning: variable 'all_metrics' is used uninitialized
1 parent 0e391fe commit 34377a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cases/report_timing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int print_timing_WR(e3sm_io_config *cfg,
7474
MPI_Offset vlen, sum_decomp_varlen;
7575
MPI_Comm comm=cfg->io_comm;
7676
double ioTime;
77-
perf_metrics metrics, *all_metrics;
77+
perf_metrics metrics, *all_metrics=NULL;
7878

7979
ndecomp = decom->num_decomp;
8080

@@ -342,7 +342,7 @@ int print_timing_RD(e3sm_io_config *cfg,
342342
MPI_Offset vlen, sum_decomp_varlen;
343343
MPI_Comm comm=cfg->io_comm;
344344
double ioTime;
345-
perf_metrics metrics, *all_metrics;
345+
perf_metrics metrics, *all_metrics=NULL;
346346

347347
ndecomp = decom->num_decomp;
348348

0 commit comments

Comments
 (0)