1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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

@@ -148,11 +148,7 @@ Standard_Boolean BRepLib::CheckSameRange(const TopoDS_Edge& AnEdge,
((*((Handle(BRep_TEdge)*)&AnEdge.TShape()))->ChangeCurves());
Standard_Real first, last;
#ifndef DEB
Standard_Real current_first =0., current_last =0. ;
#else
Standard_Real current_first,current_last ;
#endif
Handle(BRep_GCurve) geometric_representation_ptr ;
while (IsSameRange && an_Iterator.More()) {
@@ -961,11 +957,7 @@ void BRepLib::SameParameter(const TopoDS_Edge& AnEdge,
GeomAdaptor_Curve& GAC = HC->ChangeCurve();
Geom2dAdaptor_Curve& GAC2d = HC2d->ChangeCurve2d();
GeomAdaptor_Surface& GAS = HS->ChangeSurface();
#ifndef DEB
Standard_Real f3d =0.,l3d =0.;
#else
Standard_Real f3d,l3d;
#endif
TopLoc_Location L3d;
Handle(Geom_Curve) C3d;
@@ -1522,11 +1514,7 @@ static Standard_Boolean tgtfaces(const TopoDS_Edge& Ed,
Standard_Boolean rev1 = (F1.Orientation() == TopAbs_REVERSED);
Standard_Boolean rev2 = (F2.Orientation() == TopAbs_REVERSED);
Standard_Real f,l,eps, angmax = -M_PI;
#ifndef DEB
Standard_Real ang =0.;
#else
Standard_Real ang;
#endif
BRep_Tool::Range(E,f,l);
Extrema_LocateExtPC ext;
Standard_Boolean IsInitialized = Standard_False;

View File

@@ -80,11 +80,7 @@ void BRepLib_MakeWire::Add(const TopTools_ListOfShape& L)
rlist.Prepend(edVer);
nlist.Prepend(edVer);
if (!mapLocale.Contains(edVer)) {
#ifndef DEB
Standard_Boolean notYetFound = Standard_True;
#else
Standard_Boolean notYetFound;
#endif
Standard_Real gap=BRep_Tool::Tolerance(edVer);
gp_Pnt pVer=BRep_Tool::Pnt(edVer);
for (itMS.Initialize(mapLocale); itMS.More(); itMS.Next()) {
@@ -135,11 +131,7 @@ void BRepLib_MakeWire::Add(const TopTools_ListOfShape& L)
TopoDS_Vertex vf, vl;
TopoDS_Shape theKey;
Standard_Boolean usedVertex;
#ifndef DEB
Standard_Boolean closedEdge = Standard_False;
#else
Standard_Boolean closedEdge;
#endif
Standard_Integer vvInd, lastInd;
do {
if (!VL.IsNull() && lesMeres.Contains(VL)) {