From: ifv Date: Thu, 18 Jun 2020 07:31:06 +0000 (+0300) Subject: 0031615: Coding - New warnings after integration fix for 0031552 X-Git-Tag: V7_5_0_beta~175 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=003c363cf411bba62a6cabf90067f129c07ee3bd;p=occt.git 0031615: Coding - New warnings after integration fix for 0031552 --- 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);