From eece0f856716173141104a84d5b5d8ad0472b301 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Mon, 12 Aug 2024 15:12:08 -0600 Subject: [PATCH] Modernize void cast --- source/fe/mapping_q_eulerian.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); -- 2.39.5