From 6e95094765800df000af13e3253113c2aee2fe59 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 14 Aug 2016 19:06:05 -0400 Subject: [PATCH] Rearrange some MPI ifdefs to make cppcheck happy. --- source/base/index_set.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/base/index_set.cc b/source/base/index_set.cc index 3edf225c1f..290e02bf3e 100644 --- a/source/base/index_set.cc +++ b/source/base/index_set.cc @@ -486,6 +486,7 @@ IndexSet::make_trilinos_map (const MPI_Comm &communicator, const bool overlapping) const { compress (); + (void)communicator; #ifdef DEBUG if (!overlapping) @@ -520,10 +521,11 @@ IndexSet::make_trilinos_map (const MPI_Comm &communicator, TrilinosWrappers::types::int_type(n_elements()), 0, #ifdef DEAL_II_WITH_MPI - Epetra_MpiComm(communicator)); + Epetra_MpiComm(communicator) #else - Epetra_SerialComm()); + Epetra_SerialComm() #endif + ); else { std::vector indices; @@ -538,11 +540,11 @@ IndexSet::make_trilinos_map (const MPI_Comm &communicator, 0), 0, #ifdef DEAL_II_WITH_MPI - Epetra_MpiComm(communicator)); + Epetra_MpiComm(communicator) #else - Epetra_SerialComm()); - (void)communicator; + Epetra_SerialComm() #endif + ); } } -- 2.39.5