From: Stephan Voss Date: Mon, 7 Oct 2024 14:08:42 +0000 (+0200) Subject: replaced void cast with [[maybe_unised]] X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3657ed41bb09b195b44589851bc395c38d3854b0;p=dealii.git replaced void cast with [[maybe_unised]] --- 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());