From: Daniel Arndt Date: Mon, 5 Feb 2018 09:07:54 +0000 (+0100) Subject: Fix unused variables in SUNDIALS wrappers' destructors X-Git-Tag: v9.0.0-rc1~465^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e456b8c1578c90b199c67f0135e2123c4c9ce33;p=dealii.git Fix unused variables in SUNDIALS wrappers' destructors --- diff --git a/source/sundials/arkode.cc b/source/sundials/arkode.cc index 205c0d9b47..96c86e6e3a 100644 --- a/source/sundials/arkode.cc +++ b/source/sundials/arkode.cc @@ -239,6 +239,7 @@ namespace SUNDIALS if (is_serial_vector::value == false) { const int ierr = MPI_Comm_free(&communicator); + (void)ierr; AssertNothrow(ierr == MPI_SUCCESS, ExcMPI(ierr)); } #endif diff --git a/source/sundials/ida.cc b/source/sundials/ida.cc index 11afc8fc88..43dcb80085 100644 --- a/source/sundials/ida.cc +++ b/source/sundials/ida.cc @@ -167,6 +167,7 @@ namespace SUNDIALS if (is_serial_vector::value == false) { const int ierr = MPI_Comm_free(&communicator); + (void)ierr; AssertNothrow(ierr == MPI_SUCCESS, ExcMPI(ierr)); } #endif diff --git a/source/sundials/kinsol.cc b/source/sundials/kinsol.cc index ba07fb638f..4fe71f0efd 100644 --- a/source/sundials/kinsol.cc +++ b/source/sundials/kinsol.cc @@ -169,6 +169,7 @@ namespace SUNDIALS if (is_serial_vector::value == false) { const int ierr = MPI_Comm_free(&communicator); + (void)ierr; AssertNothrow(ierr == MPI_SUCCESS, ExcMPI(ierr)); } #endif