]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use void instead of bogus operation.
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 14 May 2015 22:15:03 +0000 (00:15 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 14 May 2015 22:15:03 +0000 (00:15 +0200)
source/opencascade/boundary_lib.cc

index 4ac09a0706fc4a2b6d7d2a53beb247d163ff57d8..af0909cddfc2826b8ef503c509bab23d226d8876 100644 (file)
@@ -237,7 +237,7 @@ namespace OpenCASCADE
     gp_Pnt proj;
     double dist = curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true);
     Assert(dist < tolerance*length, ExcPointNotOnManifold(space_point));
-    dist *= 2; // Silence compiler warning in Release mode.
+    (void)dist; // Silence compiler warning in Release mode.
     return Point<1>(GCPnts_AbscissaPoint::Length(curve->GetCurve(),curve->GetCurve().FirstParameter(),t));
   }
 

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.