mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -181,10 +181,8 @@ void BRepCheck::Print(const BRepCheck_Status stat,
|
||||
case BRepCheck_CheckFail:
|
||||
OS << "BRepCheck_CheckFail\n";
|
||||
break;
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -91,10 +91,8 @@ void BRepCheck_Analyzer::Put(const TopoDS_Shape& S,
|
||||
case TopAbs_COMPSOLID:
|
||||
case TopAbs_COMPOUND:
|
||||
break;
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
myMap.Bind(S,HR);
|
||||
for(TopoDS_Iterator theIterator(S);theIterator.More();theIterator.Next()) {
|
||||
|
@@ -684,29 +684,13 @@ static Standard_Boolean IsInside(const TopoDS_Wire& wir,
|
||||
}
|
||||
|
||||
gp_Pnt2d pt2d(C2d->Value(prm));
|
||||
#ifdef DEB
|
||||
TopAbs_State st2=
|
||||
#endif
|
||||
FClass2d.Perform(pt2d,Standard_False);
|
||||
//-- if(st1!=st2) {
|
||||
//-- static int p=0;
|
||||
//-- printf("\n point p%d %g %g \n",++p,pt2d.X(),pt2d.Y());
|
||||
//-- }
|
||||
|
||||
if(WireBienOriente) {
|
||||
#ifndef DEB
|
||||
return(FClass2d.Perform(pt2d,Standard_False) == TopAbs_OUT);
|
||||
}
|
||||
else {
|
||||
return(FClass2d.Perform(pt2d,Standard_False) == TopAbs_IN);
|
||||
}
|
||||
#else
|
||||
return(st2 == TopAbs_OUT);
|
||||
}
|
||||
else {
|
||||
return(st2 == TopAbs_IN);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user