1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0024222: Compiler warnings 'unreacheable code' and 'conditional expression is constant' in MOA

Eliminated MSVS L4 warnings.
fixed incorrect break invoking in edge searching in SplitEdge.
This commit is contained in:
aml 2013-10-10 14:43:03 +04:00 committed by bugmaster
parent 11fca7c177
commit 617cf08207
2 changed files with 7 additions and 7 deletions

View File

@ -120,7 +120,7 @@ void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
const Standard_Real V0,
const Standard_Real U1,
const Standard_Real V1) {
const Standard_Integer DebugDump = 0;
//#define DEBUGDUMP
Standard_Integer i1,i2;
Standard_Real U,V;
Standard_Real U1mU0sNbdeltaU = (U1-U0)/(Standard_Real)nbdeltaU;
@ -195,9 +195,9 @@ void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
// Modified by Sergey KHROMOV - Fri Dec 7 11:23:34 2001 End
if(DebugDump) {
#ifdef DEBUGDUMP
Dump();
}
#endif
}
//=======================================================================
//function : Init
@ -206,7 +206,7 @@ void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
const TColStd_Array1OfReal& Upars,
const TColStd_Array1OfReal& Vpars) {
const Standard_Integer DebugDump = 0;
//#define DEBUGDUMP
Standard_Integer i1,i2;
Standard_Real U,V;
gp_Pnt TP;
@ -286,9 +286,9 @@ void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
// Modified by Sergey KHROMOV - Fri Dec 7 11:23:34 2001 End
if(DebugDump) {
#ifdef DEBUGDUMP
Dump();
}
#endif
}
//=======================================================================
//function : DeflectionOnTriangle

View File

@ -990,8 +990,8 @@ static void SplitEdge(const TopoDS_Edge &theEdge,
if (aCurPar > aFPar && aCurPar < aLPar)
{
aBuilder.Add(anEdge, aCurVtx);
break;
}
break;
}
}
}