From 7779efb0143deb03bae5b3f227579c97672275ac Mon Sep 17 00:00:00 2001 From: Jason Landini Date: Mon, 12 Aug 2024 16:52:42 -0400 Subject: [PATCH] marked potentially unused with [[maybe_unused]] --- source/distributed/tria.cc | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index c01fb051a9..0285bf3bc0 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -313,9 +313,8 @@ namespace vertex_touch_count.end(), &connectivity->ctt_offset[1]); - const typename internal::p4est::types::locidx num_vtt = + [[maybe_unused]] const typename internal::p4est::types::locidx num_vtt = std::accumulate(vertex_touch_count.begin(), vertex_touch_count.end(), 0u); - (void)num_vtt; Assert(connectivity->ctt_offset[triangulation.n_vertices()] == num_vtt, ExcInternalError()); @@ -727,10 +726,9 @@ namespace typename internal::p4est::types::quadrant *quadrant, int /* rank_begin */, int /* rank_end */, - void * /* this is always nullptr */ point) + [[maybe_unused]] void * /* this is always nullptr */ point) { // point must be nullptr here - (void)point; Assert(point == nullptr, dealii::ExcInternalError()); // we need the user pointer @@ -1849,11 +1847,9 @@ namespace parallel template DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim)) void Triangulation::create_triangulation( - const TriangulationDescription::Description + [[maybe_unused]] const TriangulationDescription::Description &construction_data) { - (void)construction_data; - DEAL_II_ASSERT_UNREACHABLE(); } @@ -2081,9 +2077,8 @@ namespace parallel } // each cell should have been flagged `CellStatus::cell_will_persist` - for (const auto &cell_rel : this->local_cell_relations) + for ([[maybe_unused]] const auto &cell_rel : this->local_cell_relations) { - (void)cell_rel; Assert((cell_rel.second == // cell_status CellStatus::cell_will_persist), ExcInternalError()); -- 2.39.5