From 499c23fdf8bc7fa4efd11230e55c0f493de8e0ae Mon Sep 17 00:00:00 2001 From: David Pecoraro Date: Mon, 12 Aug 2024 16:54:54 -0600 Subject: [PATCH] Fixed error in attribute placement --- source/distributed/tria.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index 375480a289..af79486d38 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -4286,10 +4286,10 @@ namespace parallel template TemporarilyMatchRefineFlags::TemporarilyMatchRefineFlags( dealii::Triangulation &tria) - : - [[maybe_unused]] distributed_tria( - dynamic_cast< - dealii::parallel::distributed::Triangulation *>(&tria)) + : distributed_tria( + dynamic_cast< + dealii::parallel::distributed::Triangulation *>( + &tria)) { #ifdef DEAL_II_WITH_P4EST if (distributed_tria != nullptr) @@ -4352,6 +4352,9 @@ namespace parallel distributed_tria->load_coarsen_flags(saved_coarsen_flags); distributed_tria->load_refine_flags(saved_refine_flags); } +#else + // pretend that this destructor does something to silence clang-tidy + (void)distributed_tria; #endif } } // namespace distributed -- 2.39.5