From: abv Date: Mon, 10 Dec 2012 12:53:05 +0000 (+0400) Subject: 0023604: Uninitialized variables in debug mode X-Git-Tag: V6_5_5~20 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=8f8fa97696a167269fe7ae61618a6baeed9efd24;p=occt-copy.git 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 --- diff --git a/src/BRepCheck/BRepCheck_Wire.cxx b/src/BRepCheck/BRepCheck_Wire.cxx index 057959d941..6b26e1033c 100755 --- a/src/BRepCheck/BRepCheck_Wire.cxx +++ b/src/BRepCheck/BRepCheck_Wire.cxx @@ -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