mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0023604: Uninitialized variables in debug mode
Removed #ifndef DEB ... #else ... #endif directives where the variables were being initialized only in release mode. Removed unused part of code.
This commit is contained in:
@@ -91,11 +91,7 @@ Standard_Integer DetectKPart(const TopoDS_Edge& Edge1,
|
||||
// find the particular case
|
||||
gp_Pnt pos1, pos;
|
||||
Standard_Real dist;
|
||||
#ifndef DEB
|
||||
Standard_Real dist1 =0.;
|
||||
#else
|
||||
Standard_Real dist1;
|
||||
#endif
|
||||
gp_Ax1 axe1, axe;
|
||||
|
||||
if (degen1) {
|
||||
|
@@ -468,11 +468,7 @@ void BRepFill_LocationLaw::CurvilinearBounds(const Standard_Integer Index,
|
||||
gp_Mat M1, M2, DM1, DM2;
|
||||
Standard_Real First, Last, EpsNul = 1.e-12;
|
||||
Standard_Real TolEps = SpatialTolerance;
|
||||
#ifndef DEB
|
||||
Standard_Boolean Ok_D1 = Standard_False;
|
||||
#else
|
||||
Standard_Boolean Ok_D1;
|
||||
#endif
|
||||
TopoDS_Vertex V;
|
||||
TopoDS_Edge E;
|
||||
TColgp_Array1OfPnt2d Bid1 (1,1);
|
||||
|
@@ -759,11 +759,7 @@ void BRepFill_NSections::Init(const TColStd_SequenceOfReal & P,
|
||||
|
||||
Standard_Integer jj;
|
||||
GeomAbs_Shape cont_jj;
|
||||
#ifndef DEB
|
||||
GeomAbs_Shape cont = GeomAbs_C0;
|
||||
#else
|
||||
GeomAbs_Shape cont;
|
||||
#endif
|
||||
|
||||
for (jj=1; jj<=myShapes.Length(); jj++) {
|
||||
|
||||
|
@@ -458,10 +458,8 @@ TopoDS_Shape BRepFill_Pipe::MakeShape(const TopoDS_Shape& S,
|
||||
explode = Standard_True;
|
||||
break;
|
||||
}
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (explode) {
|
||||
@@ -644,10 +642,8 @@ Standard_Integer BRepFill_Pipe::FindEdge(const TopoDS_Shape& S,
|
||||
case TopAbs_COMPSOLID :
|
||||
Standard_DomainError::Raise("BRepFill_Pipe::SOLID or COMPSOLID");
|
||||
break;
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
return result;
|
||||
@@ -712,10 +708,8 @@ Standard_Integer BRepFill_Pipe::FindVertex(const TopoDS_Shape& S,
|
||||
case TopAbs_COMPSOLID :
|
||||
Standard_DomainError::Raise("BRepFill_Pipe::SOLID or COMPSOLID");
|
||||
break;
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
return result;
|
||||
|
@@ -164,11 +164,7 @@ static Standard_Real EvalPhase(const TopoDS_Edge& Edge,
|
||||
{
|
||||
gp_Pnt2d PE1,PE2,PF1,PF2;
|
||||
Standard_Real VDeg;
|
||||
#ifndef DEB
|
||||
Standard_Real V = 0.;
|
||||
#else
|
||||
Standard_Real V;
|
||||
#endif
|
||||
BRep_Tool::UVPoints(Edge,Face,PE1,PE2);
|
||||
VDeg = PE1.Y();
|
||||
TopExp_Explorer Exp(Face,TopAbs_EDGE);
|
||||
|
Reference in New Issue
Block a user