]> https://gitweb.dealii.org/ - dealii.git/commitdiff
replaced void cast with [[maybe_unised]]
authorStephan Voss <stvoss@gmx.de>
Mon, 7 Oct 2024 14:08:42 +0000 (16:08 +0200)
committerStephan Voss <stvoss@gmx.de>
Mon, 7 Oct 2024 14:08:42 +0000 (16:08 +0200)
include/deal.II/matrix_free/operators.h
include/deal.II/matrix_free/tools.h

index 8f367059937c5ce43fbcf7cf2e83a6732a990a8b..f1b3fd2d38ad125e3efda59e62561aef0c76f51c 100644 (file)
@@ -1261,10 +1261,10 @@ namespace MatrixFreeOperators
 
   template <int dim, typename VectorType, typename VectorizedArrayType>
   typename Base<dim, VectorType, VectorizedArrayType>::value_type
-  Base<dim, VectorType, VectorizedArrayType>::el(const unsigned int row,
-                                                 const unsigned int col) const
+  Base<dim, VectorType, VectorizedArrayType>::el(
+    const unsigned int                  row,
+    [[maybe_unused]] const unsigned int col) const
   {
-    (void)col;
     Assert(row == col, ExcNotImplemented());
     Assert(inverse_diagonal_entries.get() != nullptr &&
              inverse_diagonal_entries->m() > 0,
index 16a9ef30ca87e879dd208ca7cee7693f15775e32..e17d65414c273db3919d1113319ae44a2b5ec23f 100644 (file)
@@ -1466,15 +1466,11 @@ namespace MatrixFreeTools
     const QuadOperation                                     &quad_operation,
     EvaluationFlags::EvaluationFlags                         evaluation_flags,
     EvaluationFlags::EvaluationFlags                         integration_flags,
-    const unsigned int                                       dof_no,
-    const unsigned int                                       quad_no,
-    const unsigned int first_selected_component,
-    const unsigned int first_vector_component)
+    [[maybe_unused]] const unsigned int                      dof_no,
+    [[maybe_unused]] const unsigned int                      quad_no,
+    [[maybe_unused]] const unsigned int first_selected_component,
+    [[maybe_unused]] const unsigned int first_vector_component)
   {
-    (void)dof_no;
-    (void)quad_no;
-    (void)first_selected_component;
-    (void)first_vector_component;
     Assert(dof_no == 0, ExcNotImplemented());
     Assert(quad_no == 0, ExcNotImplemented());
     Assert(first_selected_component == 0, ExcNotImplemented());

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.