mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0022922: Clean up warnings on uninitialized / unused variables
This commit is contained in:
committed by
bugmaster
parent
25289ec1e1
commit
6e6cd5d949
@@ -592,10 +592,6 @@ Standard_Real GeomFill_CorrectedFrenet::GetAngleAT(const Standard_Real Param) co
|
||||
};
|
||||
if(HArrPoles->Value(iC) == Param || Param == HArrPoles->Value(iC+1)) return TLaw->Value(Param);
|
||||
};
|
||||
#ifdef DEB
|
||||
Standard_Real Po =
|
||||
#endif
|
||||
HArrPoles->Value(iC);
|
||||
// Calculate differenciation between apporoximated and local values of AngleAT
|
||||
Standard_Real AngP = TLaw->Value(Param), AngPo = HArrAngle->Value(iC), dAng = AngP - AngPo;
|
||||
gp_Vec Tangent, Normal, BN;
|
||||
|
@@ -268,10 +268,6 @@ void GeomFill_Curved::Init(const TColgp_Array1OfPnt& P1,
|
||||
|
||||
IsRational = Standard_False;
|
||||
|
||||
#ifdef DEB
|
||||
Standard_Real NU = NPolU - 1;
|
||||
Standard_Real NV = NPolV - 1;
|
||||
#endif
|
||||
myPoles = new TColgp_HArray2OfPnt( 1, NPolU, 1, NPolV);
|
||||
|
||||
Standard_Integer i,j;
|
||||
|
@@ -17,11 +17,7 @@
|
||||
static gp_Vec DDeriv(const gp_Vec& F, const gp_Vec& DF, const gp_Vec& D2F)
|
||||
{
|
||||
Standard_Real Norma = F.Magnitude();
|
||||
#ifdef DEB
|
||||
Standard_Real dot = F.Dot(DF);
|
||||
#else
|
||||
F.Dot(DF);
|
||||
#endif
|
||||
|
||||
gp_Vec Result = (D2F - 2*DF*(F*DF)/(Norma*Norma))/Norma -
|
||||
F*((DF.SquareMagnitude() + F*D2F
|
||||
- 3*(F*DF)*(F*DF)/(Norma*Norma))/(Norma*Norma*Norma));
|
||||
|
@@ -182,11 +182,6 @@
|
||||
|
||||
gp_Vec n(P, PG); // vecteur definissant la normale
|
||||
Standard_Real Norm = n.Magnitude(), ndn;
|
||||
#ifdef DEB
|
||||
Standard_Real Norm2 = n.SquareMagnitude();
|
||||
#else
|
||||
n.SquareMagnitude();
|
||||
#endif
|
||||
//derivee de n par rapport a Param
|
||||
gp_Vec dn, d2n;
|
||||
dn.SetLinearForm(dtg_dt, TG, -1, To);
|
||||
|
@@ -629,12 +629,6 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
gp_Vec T, N, B;
|
||||
gp_Pnt P;
|
||||
Standard_Boolean Ok;
|
||||
#ifdef DEB
|
||||
Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
|
||||
#else
|
||||
myCurve->FirstParameter() ;
|
||||
#endif
|
||||
|
||||
|
||||
myCurve->D0(Param, P);
|
||||
V.SetXYZ(P.XYZ());
|
||||
@@ -650,12 +644,6 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
}
|
||||
|
||||
if (rotation) {
|
||||
#ifdef DEB
|
||||
Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
|
||||
#else
|
||||
myCurve->FirstParameter() ;
|
||||
#endif
|
||||
|
||||
//initialisation du germe
|
||||
InitX(Param);
|
||||
Standard_Integer Iter = 100;
|
||||
@@ -689,6 +677,7 @@ static void InGoodPeriod(const Standard_Real Prec,
|
||||
}
|
||||
else {
|
||||
#if DEB
|
||||
Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
|
||||
cout << "LocationGuide::D0 : No Result !"<<endl;
|
||||
TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
|
||||
#endif
|
||||
|
@@ -110,11 +110,6 @@ void GeomFill_PolynomialConvertor::Section(const gp_Pnt& FirstPnt,
|
||||
gp_Mat M(V1.X(), V2.X(), 0,
|
||||
V1.Y(), V2.Y(), 0,
|
||||
V1.Z(), V2.Z(), 0);
|
||||
#ifdef DEB
|
||||
Standard_Real r = FirstPnt.Distance(Center);
|
||||
#else
|
||||
FirstPnt.Distance(Center);
|
||||
#endif
|
||||
|
||||
// Calcul des contraintes -----------
|
||||
Vx(1) = 1; Vy(1) = 0;
|
||||
|
@@ -131,11 +131,6 @@ void GeomFill_QuasiAngularConvertor::Section(const gp_Pnt& FirstPnt,
|
||||
gp_Mat M(V1.X(), V2.X(), 0,
|
||||
V1.Y(), V2.Y(), 0,
|
||||
V1.Z(), V2.Z(), 0);
|
||||
#ifdef DEB
|
||||
Standard_Real r = FirstPnt.Distance(Center);
|
||||
#else
|
||||
FirstPnt.Distance(Center);
|
||||
#endif
|
||||
|
||||
// Calcul des coeffs -----------
|
||||
beta = Angle/4;
|
||||
|
@@ -256,11 +256,6 @@ void GeomFill_SweepSectionGenerator::Perform(const Standard_Boolean Polynomial)
|
||||
myPolynomial = Polynomial;
|
||||
|
||||
// eval myNbSections.
|
||||
#ifdef DEB
|
||||
Standard_Integer Deg = myPath->Degree();
|
||||
#else
|
||||
myPath->Degree();
|
||||
#endif
|
||||
Standard_Integer NSpans = myPath->NbKnots()-1;
|
||||
|
||||
myNbSections = 21 * NSpans;
|
||||
|
Reference in New Issue
Block a user