1
0
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:
abv
2012-12-10 16:53:05 +04:00
committed by omy
parent bd92cc2a59
commit 7a06c690fb
81 changed files with 17 additions and 617 deletions

View File

@@ -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) {

View File

@@ -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);

View File

@@ -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++) {

View File

@@ -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;

View File

@@ -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);