]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Removed void casts with maybe unused
authorEdward Terrell <terrell1@ad.unc.edu>
Mon, 12 Aug 2024 21:11:20 +0000 (17:11 -0400)
committerMatthias Maier <tamiko@43-1.org>
Mon, 12 Aug 2024 22:12:12 +0000 (17:12 -0500)
source/grid/manifold_lib.cc

index 7238642b787a14eb8be4a2a0c6e97458e119bab2..344c809b8e7df620a3ab3f8e8589bc76bc8eca23 100644 (file)
@@ -446,8 +446,7 @@ SphericalManifold<dim, spacedim>::get_tangent_vector(
   const Point<spacedim> &p1,
   const Point<spacedim> &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<const Tensor<1, 3>> &directions,
-                       const ArrayView<const double>       &distances,
+                       [[maybe_unused]] const ArrayView<const double>       &distances,
                        const ArrayView<const double>       &weights,
                        const Point<3>                      &candidate_point)
       {
-        (void)distances;
 
         AssertDimension(directions.size(), distances.size());
         AssertDimension(directions.size(), weights.size());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.