1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +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.

Signed-off-by: skv <skv@opencascade.com>
This commit is contained in:
abv 2012-12-10 16:53:05 +04:00 committed by skv
parent fd462ec24b
commit 8f8fa97696

View File

@ -548,11 +548,7 @@ BRepCheck_Status BRepCheck_Wire::Orientation(const TopoDS_Face& F,
theOstat = BRepCheck_NoError;
TopoDS_Vertex VF,VL;
#ifndef DEB
TopAbs_Orientation orient, ortmp = TopAbs_FORWARD;
#else
TopAbs_Orientation orient, ortmp;
#endif
TopTools_ListOfShape ledge, ListOfPassedEdge;
TopExp_Explorer exp,vte;
TopTools_MapOfShape mapS;
@ -1492,11 +1488,7 @@ static TopAbs_Orientation GetOrientation(const TopTools_MapOfShape& mapE,
Standard_Real MinAngle, MaxAngle, angle;
Standard_Real gpResolution=gp::Resolution();
TopAbs_Orientation aVOrientation, aEdgOrientation;
#ifndef DEB
Standard_Real dist2d = 0, p = 0;
#else
Standard_Real dist2d, p;
#endif
Standard_Real f, l, parpiv;
Standard_Real tolv = BRep_Tool::Tolerance(V);
BRepAdaptor_Surface Ads(F,Standard_False); // no restriction