]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed error in attribute placement 17487/head
authorDavid Pecoraro <pecoraro27@gmail.com>
Mon, 12 Aug 2024 22:54:54 +0000 (16:54 -0600)
committerDavid Pecoraro <pecoraro27@gmail.com>
Mon, 12 Aug 2024 22:54:54 +0000 (16:54 -0600)
source/distributed/tria.cc

index 375480a28922fdc6ebfa82bd5716bc0fd2b00af9..af79486d38476166e8a4d3f5ea3df6468ee231e3 100644 (file)
@@ -4286,10 +4286,10 @@ namespace parallel
     template <int dim, int spacedim>
     TemporarilyMatchRefineFlags<dim, spacedim>::TemporarilyMatchRefineFlags(
       dealii::Triangulation<dim, spacedim> &tria)
-      :
-      [[maybe_unused]] distributed_tria(
-        dynamic_cast<
-          dealii::parallel::distributed::Triangulation<dim, spacedim> *>(&tria))
+      : distributed_tria(
+          dynamic_cast<
+            dealii::parallel::distributed::Triangulation<dim, spacedim> *>(
+            &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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.