From 8226f16ac07354c1e7c566ebbbccdeb63cb514d1 Mon Sep 17 00:00:00 2001 From: Edward Terrell Date: Mon, 12 Aug 2024 17:11:20 -0400 Subject: [PATCH] Removed void casts with maybe unused --- source/grid/manifold_lib.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index 7238642b78..344c809b8e 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -446,8 +446,7 @@ SphericalManifold::get_tangent_vector( const Point &p1, const Point &p2) const { - const double tol = 1e-10; - (void)tol; + [[maybe_unused]] const double tol = 1e-10; Assert(p1 != p2, ExcMessage("p1 and p2 should not concide.")); @@ -626,11 +625,10 @@ namespace internal template <> Point<3> do_get_new_point(const ArrayView> &directions, - const ArrayView &distances, + [[maybe_unused]] const ArrayView &distances, const ArrayView &weights, const Point<3> &candidate_point) { - (void)distances; AssertDimension(directions.size(), distances.size()); AssertDimension(directions.size(), weights.size()); -- 2.39.5