]> OCCT Git - occt-copy.git/commitdiff
0023604: Uninitialized variables in debug mode
authorabv <abv@opencascade.com>
Mon, 10 Dec 2012 12:53:05 +0000 (16:53 +0400)
committerskv <skv@opencascade.com>
Fri, 22 Feb 2013 08:14:07 +0000 (12:14 +0400)
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>
src/BRepCheck/BRepCheck_Wire.cxx

index 057959d9416caa4b3046e35bb6baa1efb5decadb..6b26e1033c025aa3b407d76801a7d574b8e44a6c 100755 (executable)
@@ -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