From: Edward Terrell Date: Mon, 12 Aug 2024 21:11:20 +0000 (-0400) Subject: Removed void casts with maybe unused X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8226f16ac07354c1e7c566ebbbccdeb63cb514d1;p=dealii.git Removed void casts with maybe unused --- 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());