From 3657ed41bb09b195b44589851bc395c38d3854b0 Mon Sep 17 00:00:00 2001 From: Stephan Voss Date: Mon, 7 Oct 2024 16:08:42 +0200 Subject: [PATCH] replaced void cast with [[maybe_unised]] --- include/deal.II/matrix_free/operators.h | 6 +++--- include/deal.II/matrix_free/tools.h | 12 ++++-------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/include/deal.II/matrix_free/operators.h b/include/deal.II/matrix_free/operators.h index 8f36705993..f1b3fd2d38 100644 --- a/include/deal.II/matrix_free/operators.h +++ b/include/deal.II/matrix_free/operators.h @@ -1261,10 +1261,10 @@ namespace MatrixFreeOperators template typename Base::value_type - Base::el(const unsigned int row, - const unsigned int col) const + Base::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, diff --git a/include/deal.II/matrix_free/tools.h b/include/deal.II/matrix_free/tools.h index 16a9ef30ca..e17d65414c 100644 --- a/include/deal.II/matrix_free/tools.h +++ b/include/deal.II/matrix_free/tools.h @@ -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()); -- 2.39.5