From af50a79002dcd345f842d082ce1659fbe7fd60c0 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 13 Aug 2024 11:02:53 -0400 Subject: [PATCH] remove [[maybe_unused]] in fe.cc This fixes the serial jenkins (gcc 9.4+unity build) --- source/fe/fe.cc | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/source/fe/fe.cc b/source/fe/fe.cc index 5b9c1fd95c..cabb98d0ca 100644 --- a/source/fe/fe.cc +++ b/source/fe/fe.cc @@ -845,12 +845,13 @@ FiniteElement::hp_constraints_are_implemented() const template const FullMatrix & FiniteElement::constraints( - [[maybe_unused]] const internal::SubfaceCase &subface_case) const + 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); [[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 " @@ -1174,9 +1175,11 @@ FiniteElement::get_sub_fe(const ComponentMask &mask) const template const FiniteElement & FiniteElement::get_sub_fe( - [[maybe_unused]] const unsigned int first_component, - [[maybe_unused]] const unsigned int n_selected_components) const + const unsigned int first_component, + const unsigned int n_selected_components) const { + (void)first_component; + (void)n_selected_components; // No complicated logic is needed here, because it is overridden in // FESystem. Just make sure that what the user chose is valid: Assert(first_component == 0 && n_selected_components == this->n_components(), @@ -1325,12 +1328,11 @@ FiniteElement::fill_fe_face_values( template inline void FiniteElement::fill_fe_face_values( - [[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 typename Triangulation::cell_iterator &cell, + 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, @@ -1341,6 +1343,8 @@ 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)face_no; + (void)cell; (void)quadrature; (void)mapping; (void)mapping_internal; -- 2.39.5