From 90a81c9e4ada48a0a34cf28d464141f75ce186c9 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 5 Apr 2019 17:07:43 -0400 Subject: [PATCH] Silence an unused variable warning. --- source/base/hdf5.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/base/hdf5.cc b/source/base/hdf5.cc index 75e4549723..bd13d4adeb 100644 --- a/source/base/hdf5.cc +++ b/source/base/hdf5.cc @@ -267,10 +267,10 @@ namespace HDF5 if (mpi) { # ifdef DEAL_II_WITH_MPI - herr_t ret; plist = H5Pcreate(H5P_DATASET_XFER); Assert(plist >= 0, ExcInternalError()); - ret = H5Pset_dxpl_mpio(plist, H5FD_MPIO_COLLECTIVE); + const herr_t ret = H5Pset_dxpl_mpio(plist, H5FD_MPIO_COLLECTIVE); + (void)ret; Assert(ret >= 0, ExcInternalError()); # else AssertThrow(false, ExcNotImplemented()); @@ -304,6 +304,7 @@ namespace HDF5 { # ifdef DEAL_II_WITH_MPI herr_t ret; + (void)ret; if (query_io_mode) { ret = H5Pget_mpio_actual_io_mode(plist, &io_mode); -- 2.39.5