summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-06-29 20:02:38 (GMT)
committerGitHub <noreply@github.com>2022-06-29 20:02:38 (GMT)
commit03ed7a3d790c2add2dccc15300005c1aec0f4f6f (patch)
treede1cc9a0c22eed50f696204e573a004c457aa3fb /testpar
parentcb424b2c456c85bcb7c338cc96923dfa43b038be (diff)
downloadhdf5-03ed7a3d790c2add2dccc15300005c1aec0f4f6f.zip
hdf5-03ed7a3d790c2add2dccc15300005c1aec0f4f6f.tar.gz
hdf5-03ed7a3d790c2add2dccc15300005c1aec0f4f6f.tar.bz2
Fixes a few minor parallel warnings (#1832)
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_prop.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/testpar/t_prop.c b/testpar/t_prop.c
index 930b895..c08a022 100644
--- a/testpar/t_prop.c
+++ b/testpar/t_prop.c
@@ -69,14 +69,22 @@ test_encode_decode(hid_t orig_pl, int mpi_rank, int recv_proc)
HDfree(rbuf);
} /* end if */
- if (0 == mpi_rank)
+ if (0 == mpi_rank) {
+ /* gcc 11 complains about passing MPI_STATUSES_IGNORE as an MPI_Status
+ * array. See the discussion here:
+ *
+ * https://github.com/pmodels/mpich/issues/5687
+ */
+ H5_GCC_DIAG_OFF("stringop-overflow")
MPI_Waitall(2, req, MPI_STATUSES_IGNORE);
+ H5_GCC_DIAG_ON("stringop-overflow")
+ }
if (NULL != sbuf)
HDfree(sbuf);
MPI_Barrier(MPI_COMM_WORLD);
- return (0);
+ return 0;
}
void