From: David Wells Date: Fri, 5 Apr 2019 21:07:43 +0000 (-0400) Subject: Silence an unused variable warning. X-Git-Tag: v9.1.0-rc1~217^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90a81c9e4ada48a0a34cf28d464141f75ce186c9;p=dealii.git Silence an unused variable warning. --- 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);