]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence an unused variable warning. 7894/head
authorDavid Wells <drwells@email.unc.edu>
Fri, 5 Apr 2019 21:07:43 +0000 (17:07 -0400)
committerDavid Wells <drwells@email.unc.edu>
Fri, 5 Apr 2019 21:07:43 +0000 (17:07 -0400)
source/base/hdf5.cc

index 75e45497230bff9a113c387ae259c4b84b9ed4cf..bd13d4adeb768b8724b3fcdea00df5430eb2308e 100644 (file)
@@ -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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.