1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0022922: Clean up warnings on uninitialized / unused variables

This commit is contained in:
dbv@opencascade.com
2012-03-07 17:00:48 +04:00
committed by bugmaster
parent 25289ec1e1
commit 6e6cd5d949
226 changed files with 151 additions and 1471 deletions

View File

@@ -76,11 +76,7 @@ GccIter_Circ2d2TanOn::
Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(L1,Cu2,OnLine,Ufirst(4));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
// gp_Vec2d Tan1,Tan2,Nor1,Nor2;
@@ -187,11 +183,7 @@ GccIter_Circ2d2TanOn::
Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(Cu1,Cu2,OnLine,Ufirst(4));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
gp_Vec2d Tan1,Tan2;
@@ -287,11 +279,7 @@ GccIter_Circ2d2TanOn::
Ufirst(3) = (point3.Distance(Point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(Cu1,Point2,OnLine,Ufirst(3));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
gp_Pnt2d point1,point3;
@@ -384,11 +372,7 @@ GccIter_Circ2d2TanOn::
Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(C1,Cu2,OnLine,Ufirst(4));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
// gp_Vec2d Tan1,Tan2,Nor1,Nor2;
@@ -501,11 +485,7 @@ GccIter_Circ2d2TanOn::
Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(C1,Cu2,OnCirc,Ufirst(4));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
// gp_Vec2d Tan1,Tan2,Nor1;
@@ -615,11 +595,7 @@ GccIter_Circ2d2TanOn::
Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(L1,Cu2,OnCirc,Ufirst(4));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
gp_Pnt2d point1,point2;
@@ -729,11 +705,7 @@ GccIter_Circ2d2TanOn::
Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(Cu1,Cu2,OnCirc,Ufirst(4));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
// gp_Vec2d Tan1,Tan2,Nor1;
@@ -833,11 +805,7 @@ GccIter_Circ2d2TanOn::
Ufirst(3) = (point3.Distance(Point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(Cu1,Point2,OnCirc,Ufirst(3));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
gp_Pnt2d point1,point3;
@@ -930,11 +898,7 @@ GccIter_Circ2d2TanOn::
Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(Cu1,Cu2,OnCurv,Ufirst(4));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
gp_Vec2d Tan1,Tan2,Tan3;
@@ -1039,11 +1003,7 @@ GccIter_Circ2d2TanOn::
Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(C1,Cu2,OnCurv,Ufirst(4));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
gp_Vec2d Tan1,Tan2,Tan3;
@@ -1150,11 +1110,7 @@ GccIter_Circ2d2TanOn::
Ufirst(4) = (point3.Distance(point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(L1,Cu2,OnCurv,Ufirst(4));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
gp_Vec2d Tan1,Tan2,Tan3;
@@ -1251,11 +1207,7 @@ GccIter_Circ2d2TanOn::
Ufirst(3) = (point3.Distance(Point2)+point3.Distance(point1))/2.;
GccIter_FuncTCuCuOnCu Func(Cu1,Point2,OnCurv,Ufirst(3));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
if (Root.IsDone()) {
Root.Root(Ufirst);
// gp_Vec2d Tan1,Tan2,Tan3;

View File

@@ -76,11 +76,7 @@ GccIter_Circ2d3Tan::
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
Root.Root(Ufirst);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
gp_Pnt2d point1,point2,point3;
gp_Vec2d Tan1,Tan2,Tan3;
TheCurveTool::D1(Cu1,Ufirst(1),point1,Tan1);
@@ -203,11 +199,7 @@ GccIter_Circ2d3Tan::
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
Root.Root(Ufirst);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
gp_Pnt2d centre1(C1.Location());
Standard_Real R1 = C1.Radius();
gp_Pnt2d point1(centre1.XY()+R1*gp_XY(Cos(Ufirst(1)),Sin(Ufirst(1))));
@@ -335,11 +327,7 @@ GccIter_Circ2d3Tan::
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
Root.Root(Ufirst);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
gp_Pnt2d centre1(C1.Location());
Standard_Real R1 = C1.Radius();
gp_Pnt2d point1(centre1.XY()+R1*gp_XY(Cos(Ufirst(1)),Sin(Ufirst(1))));
@@ -470,11 +458,7 @@ GccIter_Circ2d3Tan::
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
Root.Root(Ufirst);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
gp_Pnt2d centre1(L1.Location());
gp_Pnt2d point1(centre1.XY()+Ufirst(1)*L1.Direction().XY());
gp_Pnt2d point2,point3;
@@ -605,11 +589,7 @@ GccIter_Circ2d3Tan::
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
Root.Root(Ufirst);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
gp_Pnt2d centre1(L1.Location());
gp_Pnt2d point1(centre1.XY()+Ufirst(1)*L1.Direction().XY());
gp_Pnt2d centre2(L2.Location());
@@ -733,11 +713,7 @@ GccIter_Circ2d3Tan::
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
Root.Root(Ufirst);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
gp_Pnt2d point1,point2;
// gp_Vec2d Tan1,Tan2,Nor1,Nor2;
gp_Vec2d Tan1,Tan2;
@@ -850,11 +826,7 @@ GccIter_Circ2d3Tan::
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
Root.Root(Ufirst);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
gp_Pnt2d point3;
// gp_Vec2d Tan3,Nor3;
gp_Vec2d Tan3;
@@ -964,11 +936,7 @@ GccIter_Circ2d3Tan::
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
Root.Root(Ufirst);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
gp_Pnt2d centre1(L1.Location());
gp_Pnt2d point1(centre1.XY()+Ufirst(2)*L1.Direction().XY());
gp_Pnt2d point2;
@@ -1086,11 +1054,7 @@ GccIter_Circ2d3Tan::
tol(3) = TheCurveTool::EpsX(Cu3,Abs(Tolerance));
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
Root.Root(Ufirst);
gp_Pnt2d centre1(C1.Location());
Standard_Real R1 = C1.Radius();
@@ -1218,11 +1182,7 @@ GccIter_Circ2d3Tan::
math_FunctionSetRoot Root(Func,Ufirst,tol,Umin,Umax);
if (Root.IsDone()) {
Root.Root(Ufirst);
#ifdef DEB
Standard_Boolean Ok = Func.Value(Ufirst,Umin);
#else
Func.Value(Ufirst,Umin);
#endif
gp_Pnt2d centre1(C1.Location());
Standard_Real R1 = C1.Radius();
gp_Pnt2d point1(centre1.XY()+R1*gp_XY(Cos(Ufirst(1)),Sin(Ufirst(1))));

View File

@@ -87,11 +87,6 @@ Standard_Boolean GccIter_FunctionTanCirCu::
TheCurveTool::D2(Curve,X,Point,Vect1,Vect2);
Standard_Real NormeD1 = Vect1.SquareMagnitude();
gp_Vec2d TheDirection(TheCirc.Location(),Point);
#ifdef DEB
Standard_Real squaredir = TheDirection.SquareMagnitude();
#else
TheDirection.SquareMagnitude();
#endif
Standard_Real cp1dott = TheDirection.Dot(Vect1);
Deriv = -2.*(cp1dott/NormeD1)*
((TheDirection.Dot(Vect2))-cp1dott*Vect1.Dot(Vect2)/NormeD1);

View File

@@ -290,11 +290,6 @@ Standard_Boolean GccIter_FunctionTanCuCuOnCu::
//norme des Tani.
Standard_Real nnor1 = Tan1.Magnitude();
Standard_Real nnor2 = Tan2.Magnitude();
#ifdef DEB
Standard_Real nnor3 = Tan3.Magnitude();
#else
Tan3.Magnitude();
#endif
// Fonctions Fui.
// ==============
Fval(1) = (P3P1.Dot(P3P1)-X(4)*X(4))/(FirstRad*FirstRad);
@@ -323,11 +318,6 @@ Standard_Boolean GccIter_FunctionTanCuCuOnCu::
//normales au courbes normees Nori et non nromees nori et norme des nori.
Standard_Real nnor1 = Tan1.Magnitude();
Standard_Real nnor2 = Tan2.Magnitude();
#ifdef DEB
Standard_Real nnor3 = Tan3.Magnitude();
#else
Tan3.Magnitude();
#endif
// Derivees dFui/uj 1 <= ui <= 3 , 1 <= uj <= 3
// =============================================
Deriv(1,1) = 2.*Tan1.Dot(P3P1)/(FirstRad*FirstRad);
@@ -374,11 +364,6 @@ Standard_Boolean GccIter_FunctionTanCuCuOnCu::
//normales au courbes normees Nori et non nromees nori et norme des nori.
Standard_Real nnor1 = Tan1.Magnitude();
Standard_Real nnor2 = Tan2.Magnitude();
#ifdef DEB
Standard_Real nnor3 = Tan3.Magnitude();
#else
Tan3.Magnitude();
#endif
// Fonctions Fui.
// ==============
Fval(1) = (P3P1.Dot(P3P1)-X(4)*X(4))/(FirstRad*FirstRad);

View File

@@ -26,9 +26,9 @@ GccIter_Lin2d2Tan::
par1sol = 0.;
pararg1 = 0.;
#ifdef DEB
Standard_Real Tol = Abs(Tolang);
#endif
//Standard_Real Tol = Abs(Tolang);
WellDone = Standard_False;
if (Qualified1.IsEnclosed()) { GccEnt_BadQualifier::Raise(); }
gp_Circ2d C1 = Qualified1.Qualified();