From: Rene Gassmoeller Date: Mon, 12 Aug 2024 21:12:08 +0000 (-0600) Subject: Modernize void cast X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eece0f856716173141104a84d5b5d8ad0472b301;p=dealii.git Modernize void cast --- diff --git a/source/fe/mapping_q_eulerian.cc b/source/fe/mapping_q_eulerian.cc index 16a84c8722..ff01b6d7c2 100644 --- a/source/fe/mapping_q_eulerian.cc +++ b/source/fe/mapping_q_eulerian.cc @@ -123,12 +123,9 @@ MappingQEulerian::compute_mapping_support_points( { const bool mg_vector = level != numbers::invalid_unsigned_int; - const types::global_dof_index n_dofs = + [[maybe_unused]] const types::global_dof_index n_dofs = mg_vector ? euler_dof_handler->n_dofs(level) : euler_dof_handler->n_dofs(); - const types::global_dof_index vector_size = euler_vector->size(); - - (void)n_dofs; - (void)vector_size; + [[maybe_unused]] const types::global_dof_index vector_size = euler_vector->size(); AssertDimension(vector_size, n_dofs);