mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0022922: Clean up warnings on uninitialized / unused variables
This commit is contained in:
committed by
bugmaster
parent
25289ec1e1
commit
6e6cd5d949
@@ -475,10 +475,6 @@ static Standard_Boolean EdgeIntersectOnWire (const gp_Pnt& P1,
|
||||
TopoDS_Shape aLocalShape = DSS.SupportOnShape2(isol);
|
||||
TopoDS_Edge E = TopoDS::Edge(aLocalShape);
|
||||
// TopoDS_Edge E = TopoDS::Edge(DSS.SupportOnShape2(isol));
|
||||
#ifdef DEB
|
||||
Standard_Real tol =
|
||||
#endif
|
||||
Precision::PConfusion();
|
||||
Standard_Real first,last,param;
|
||||
DSS.ParOnEdgeS2(isol,param);
|
||||
BRep_Tool::Range(E,first,last);
|
||||
|
@@ -387,9 +387,6 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
|
||||
// bounding box of the stop shape
|
||||
Bnd_Box BSurf;//, TheBox;
|
||||
Standard_Real Umin, Umax, Vmin, Vmax;
|
||||
#ifdef DEB
|
||||
Standard_Real Tol = Precision::Confusion()/10;
|
||||
#endif
|
||||
// BRepTools B;
|
||||
// BRep_Tool BT;
|
||||
Handle(Geom_Surface) Surf;
|
||||
|
@@ -327,10 +327,6 @@ static Standard_Boolean IsPlanar(const TopoDS_Edge& E)
|
||||
static Standard_Integer Side(const TopoDS_Wire& Profil,
|
||||
const Standard_Real Tol)
|
||||
{
|
||||
#ifdef DEB
|
||||
Standard_Boolean OnLeft = Standard_False;
|
||||
Standard_Boolean OnRight = Standard_False;
|
||||
#endif
|
||||
TopoDS_Vertex V1,V2;
|
||||
// Rem : it is enough to test the first edge of the Wire.
|
||||
// ( Correctly cut in PrepareProfil)
|
||||
@@ -1834,15 +1830,8 @@ void BRepFill_Evolved::Add( BRepFill_Evolved& Vevo,
|
||||
// if one remains on the same edge.
|
||||
// if one passes from left to the right they are inverted.
|
||||
//------------------------------------------------- -------------
|
||||
#ifndef DEB
|
||||
Standard_Boolean Commun = Standard_False;
|
||||
#else
|
||||
Standard_Boolean Commun;
|
||||
#endif
|
||||
#ifdef DEB
|
||||
TopAbs_Orientation OriSide =
|
||||
#endif
|
||||
Relative(myProfile,Prof,
|
||||
Relative(myProfile,Prof,
|
||||
TopoDS::Vertex(VV),
|
||||
Commun);
|
||||
|
||||
@@ -2933,11 +2922,6 @@ TopAbs_Orientation OriEdgeInFace (const TopoDS_Edge& E,
|
||||
const TopoDS_Face& F )
|
||||
|
||||
{
|
||||
#ifdef DEB
|
||||
TopAbs_Orientation O =
|
||||
#endif
|
||||
F.Orientation();
|
||||
|
||||
TopExp_Explorer Exp(F.Oriented(TopAbs_FORWARD),TopAbs_EDGE);
|
||||
|
||||
for (; Exp.More() ;Exp.Next()) {
|
||||
|
@@ -1827,10 +1827,6 @@ void MakeOffset (const TopoDS_Edge& E,
|
||||
// if the offset is greater otr equal to the radius and the side of the
|
||||
// concavity of the circle => edge null.
|
||||
gp_Circ2d C1(AC.Circle());
|
||||
#ifdef DEB
|
||||
Standard_Real radius =
|
||||
#endif
|
||||
C1.Radius();
|
||||
gp_Ax22d axes( C1.Axis());
|
||||
gp_Dir2d Xd = axes.XDirection();
|
||||
gp_Dir2d Yd = axes.YDirection();
|
||||
|
@@ -1043,7 +1043,6 @@ void BRepFill_PipeShell::BuildHistory(const BRepFill_Sweep& theSweep)
|
||||
}
|
||||
|
||||
for(j = myLocation->NbLaw(); j >= 1; j--) {
|
||||
Standard_Boolean ismodified = Standard_False;
|
||||
TopTools_ListOfShape aListOfFace;
|
||||
|
||||
if(bPrevModified) {
|
||||
|
Reference in New Issue
Block a user