From: David Wells Date: Sun, 14 Aug 2016 23:06:05 +0000 (-0400) Subject: Rearrange some MPI ifdefs to make cppcheck happy. X-Git-Tag: v8.5.0-rc1~772^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e95094765800df000af13e3253113c2aee2fe59;p=dealii.git Rearrange some MPI ifdefs to make cppcheck happy. --- 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 + ); } }