From: Timo Heister Date: Tue, 12 Apr 2022 18:09:30 +0000 (-0400) Subject: fix a release mode warning X-Git-Tag: v9.4.0-rc1~321^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec59bff00784123e5c987332efc8a281db51bb1a;p=dealii.git fix a release mode warning --- diff --git a/include/deal.II/meshworker/copy_data.h b/include/deal.II/meshworker/copy_data.h index 69f857b0bf..d008d8a1b5 100644 --- a/include/deal.II/meshworker/copy_data.h +++ b/include/deal.II/meshworker/copy_data.h @@ -220,6 +220,7 @@ namespace MeshWorker // So we have to be a bit permissive here. constexpr const int max_index = std::max(std::max(n_matrices, n_vectors), n_dof_indices); + (void)max_index; Assert(index < max_index, ExcIndexRange(index, 0, max_index)); if (index < n_matrices)