]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove void casts in FESystem source file 17493/head
authorLaura Prieto Saavedra <lauraprietosaavedra@gmail.com>
Mon, 12 Aug 2024 21:12:35 +0000 (17:12 -0400)
committerLaura Prieto Saavedra <lauraprietosaavedra@gmail.com>
Mon, 12 Aug 2024 21:12:35 +0000 (17:12 -0400)
source/fe/fe_system.cc

index 7fc17ff60d7dcce5e816e6ff7cf63a52cf000bce..8a4bcc7acafd3ff1ca6c4a19c0eed95bfbf1200a 100644 (file)
@@ -187,18 +187,16 @@ namespace internal
   template <int dim, int spacedim = dim>
   void
   copy_nonprimitive_base_element_values(
-    const FESystem<dim, spacedim> &fe,
-    const unsigned int             base_no,
-    const unsigned int             n_q_points,
-    const UpdateFlags              base_flags,
+    [[maybe_unused]] const FESystem<dim, spacedim> &fe,
+    [[maybe_unused]] const unsigned int             base_no,
+    const unsigned int                              n_q_points,
+    const UpdateFlags                               base_flags,
     const std::vector<typename FESystem<dim, spacedim>::BaseOffsets> &offsets,
     const FEValuesImplementation::FiniteElementRelatedData<dim, spacedim>
       &base_data,
     FEValuesImplementation::FiniteElementRelatedData<dim, spacedim>
       &output_data)
   {
-    (void)fe;
-    (void)base_no;
     Assert(!fe.base_element(base_no).is_primitive(), ExcInternalError());
 
     for (const auto &offset : offsets)
@@ -1702,8 +1700,9 @@ FESystem<dim, spacedim>::initialize(
   Assert(count_nonzeros(multiplicities) > 0,
          ExcMessage("You only passed FiniteElements with multiplicity 0."));
 
-  const ReferenceCell reference_cell = fes.front()->reference_cell();
-  (void)reference_cell;
+  [[maybe_unused]] const ReferenceCell reference_cell =
+    fes.front()->reference_cell();
+
   Assert(std::all_of(fes.begin(),
                      fes.end(),
                      [reference_cell](const FiniteElement<dim, spacedim> *fe) {

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.