From 003c363cf411bba62a6cabf90067f129c07ee3bd Mon Sep 17 00:00:00 2001 From: ifv Date: Thu, 18 Jun 2020 10:31:06 +0300 Subject: [PATCH] 0031615: Coding - New warnings after integration fix for 0031552 --- src/IntPatch/IntPatch_ImpImpIntersection_4.gxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IntPatch/IntPatch_ImpImpIntersection_4.gxx b/src/IntPatch/IntPatch_ImpImpIntersection_4.gxx index c8e4028947..48ec695541 100644 --- a/src/IntPatch/IntPatch_ImpImpIntersection_4.gxx +++ b/src/IntPatch/IntPatch_ImpImpIntersection_4.gxx @@ -2694,7 +2694,7 @@ static IntPatch_ImpImpIntersection::IntStatus // Standard_Boolean isGoodIntersection = Standard_False; Standard_Real anOptdu = 0.; - do + for (;;) { //Checking parameters of cylinders in order to define "good intersection" //"Good intersection" means that axes of cylinders are almost perpendicular and @@ -2744,8 +2744,8 @@ static IntPatch_ImpImpIntersection::IntStatus aNbP = (Standard_Integer)(2. * M_PI / anAngle) + 1; } anOptdu = 2. * M_PI_2 / (Standard_Real)(aNbP - 1); - - } while (0); + break; + } // const ComputationMethods::stCoeffsValue &anEquationCoeffs = theBW.SICoeffs(); const IntSurf_Quadric& aQuad1 = theBW.GetQSurface(1); -- 2.39.5