From 1f2479798733c47b272320e9df5487a71aca2ca5 Mon Sep 17 00:00:00 2001 From: Jordan Hoffart Date: Mon, 12 Aug 2024 14:51:50 -0600 Subject: [PATCH] Remove first 6/13 void casts in fe.cc --- source/fe/fe.cc | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/source/fe/fe.cc b/source/fe/fe.cc index b8785c5ce5..5b9c1fd95c 100644 --- a/source/fe/fe.cc +++ b/source/fe/fe.cc @@ -845,15 +845,13 @@ FiniteElement::hp_constraints_are_implemented() const template const FullMatrix & FiniteElement::constraints( - const internal::SubfaceCase &subface_case) const + [[maybe_unused]] const internal::SubfaceCase &subface_case) const { // TODO: the implementation makes the assumption that all faces have the // same number of dofs AssertDimension(this->n_unique_faces(), 1); - const unsigned int face_no = 0; - (void)face_no; + [[maybe_unused]] const unsigned int face_no = 0; - (void)subface_case; Assert(subface_case == internal::SubfaceCase::case_isotropic, ExcMessage("Constraints for this element are only implemented " "for the case that faces are refined isotropically " @@ -1176,8 +1174,8 @@ FiniteElement::get_sub_fe(const ComponentMask &mask) const template const FiniteElement & FiniteElement::get_sub_fe( - const unsigned int first_component, - const unsigned int n_selected_components) const + [[maybe_unused]] const unsigned int first_component, + [[maybe_unused]] const unsigned int n_selected_components) const { // No complicated logic is needed here, because it is overridden in // FESystem. Just make sure that what the user chose is valid: @@ -1185,8 +1183,6 @@ FiniteElement::get_sub_fe( ExcMessage( "You can only select a whole FiniteElement, not a part of one.")); - (void)first_component; - (void)n_selected_components; return *this; } @@ -1329,11 +1325,12 @@ FiniteElement::fill_fe_face_values( template inline void FiniteElement::fill_fe_face_values( - const typename Triangulation::cell_iterator &cell, - const unsigned int face_no, - const Quadrature &quadrature, - const Mapping &mapping, - const typename Mapping::InternalDataBase &mapping_internal, + [[maybe_unused]] const typename Triangulation::cell_iterator + &cell, + [[maybe_unused]] const unsigned int face_no, + const Quadrature &quadrature, + const Mapping &mapping, + const typename Mapping::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData &mapping_data, const typename FiniteElement::InternalDataBase &fe_internal, @@ -1344,8 +1341,6 @@ FiniteElement::fill_fe_face_values( Assert(false, ExcMessage("Use of a deprecated interface, please implement " "fill_fe_face_values taking a hp::QCollection argument")); - (void)cell; - (void)face_no; (void)quadrature; (void)mapping; (void)mapping_internal; -- 2.39.5