Skip to content

Commit

Permalink
Silence unused variable warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth committed Jan 20, 2022
1 parent 2a7f013 commit 9ea0865
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions include/deal.II/base/mpi_consensus_algorithms.templates.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ namespace Utilities
// a request to:
n_outstanding_answers = n_targets;
}
#else
(void)targets;
(void)create_request;
(void)comm;
#endif
}

Expand All @@ -294,8 +298,7 @@ namespace Utilities
bool
NBX<T1, T2>::all_locally_originated_receives_are_completed(
const std::function<void(const unsigned int, const std::vector<T2> &)>
&process_answer,

& process_answer,
const MPI_Comm &comm)
{
#ifdef DEAL_II_WITH_MPI
Expand Down Expand Up @@ -375,6 +378,9 @@ namespace Utilities
}

#else
(void)process_answer;
(void)comm;

return true;
#endif
}
Expand Down Expand Up @@ -454,6 +460,9 @@ namespace Utilities
request_requests.back().get());
AssertThrowMPI(ierr);
}
#else
(void)answer_request;
(void)comm;
#endif
}

Expand All @@ -473,6 +482,8 @@ namespace Utilities
"ConsensusAlgorithms::NBX uses MPI 3.0 features. "
"You should compile with at least MPI 3.0."));
# endif
#else
(void)comm;
#endif
}

Expand Down Expand Up @@ -527,6 +538,8 @@ namespace Utilities
AssertThrowMPI(ierr);
# endif
}
#else
(void)comm;
#endif
}

Expand Down Expand Up @@ -633,6 +646,9 @@ namespace Utilities

return n_sources;
#else
(void)targets;
(void)create_request;
(void)comm;
return 0;
#endif
}
Expand Down Expand Up @@ -703,6 +719,8 @@ namespace Utilities
&send_answer_requests[index]);
AssertThrowMPI(ierr);
#else
(void)answer_request;
(void)comm;
(void)index;
#endif
}
Expand Down Expand Up @@ -760,6 +778,10 @@ namespace Utilities

process_answer(other_rank, recv_buffer);
}
#else
(void)n_targets;
(void)process_answer;
(void)comm;
#endif
}

Expand Down

0 comments on commit 9ea0865

Please sign in to comment.