From 6e456b8c1578c90b199c67f0135e2123c4c9ce33 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 5 Feb 2018 10:07:54 +0100 Subject: [PATCH] Fix unused variables in SUNDIALS wrappers' destructors --- source/sundials/arkode.cc | 1 + source/sundials/ida.cc | 1 + source/sundials/kinsol.cc | 1 + 3 files changed, 3 insertions(+) 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 -- 2.39.5