]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Modernize void cast
authorRene Gassmoeller <rene.gassmoeller@mailbox.org>
Mon, 12 Aug 2024 21:12:08 +0000 (15:12 -0600)
committerRene Gassmoeller <rene.gassmoeller@mailbox.org>
Mon, 12 Aug 2024 21:12:08 +0000 (15:12 -0600)
source/fe/mapping_q_eulerian.cc

index 16a84c8722c1cf55016db5fcd07b3ea481658f20..ff01b6d7c2d35e3f4edb7c425f6f80caf08eefc4 100644 (file)
@@ -123,12 +123,9 @@ MappingQEulerian<dim, VectorType, spacedim>::compute_mapping_support_points(
 {
   const bool mg_vector = level != numbers::invalid_unsigned_int;
 
-  const types::global_dof_index n_dofs =
+  [[maybe_unused]] const types::global_dof_index n_dofs =
     mg_vector ? euler_dof_handler->n_dofs(level) : euler_dof_handler->n_dofs();
-  const types::global_dof_index vector_size = euler_vector->size();
-
-  (void)n_dofs;
-  (void)vector_size;
+  [[maybe_unused]] const types::global_dof_index vector_size = euler_vector->size();
 
   AssertDimension(vector_size, n_dofs);
 

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.