mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0022922: Clean up warnings on uninitialized / unused variables
This commit is contained in:
committed by
bugmaster
parent
25289ec1e1
commit
6e6cd5d949
@@ -488,11 +488,6 @@ void IntPatch_ALine::ComputeVertexParameters(const Standard_Real Tol) {
|
||||
nbvtx = NbVertex();
|
||||
if(nbvtx>1) {
|
||||
IntPatch_Point& VTX0 = svtx.ChangeValue(1);
|
||||
#ifdef DEB
|
||||
//Standard_Real d;
|
||||
IntPatch_Point& VTX1 =
|
||||
#endif
|
||||
svtx.ChangeValue(2);
|
||||
if( (VTX0.IsOnDomS1() == Standard_False)
|
||||
&& (VTX0.IsOnDomS2() == Standard_False)) {
|
||||
svtx.Remove(1);
|
||||
@@ -504,10 +499,6 @@ void IntPatch_ALine::ComputeVertexParameters(const Standard_Real Tol) {
|
||||
}
|
||||
if(nbvtx>1) {
|
||||
IntPatch_Point& VTX0 = svtx.ChangeValue(nbvtx);
|
||||
#ifdef DEB
|
||||
IntPatch_Point& VTX1 =
|
||||
#endif
|
||||
svtx.ChangeValue(nbvtx-1);
|
||||
if( (VTX0.IsOnDomS1() == Standard_False)
|
||||
&& (VTX0.IsOnDomS2() == Standard_False)) {
|
||||
svtx.Remove(nbvtx);
|
||||
|
@@ -1075,9 +1075,9 @@ Standard_Boolean FindLine (gp_Pnt& Psurf,
|
||||
//-- le point n a pas ete trouve par bete projection.
|
||||
//-- on essaie l intersection avec la restriction en 2d
|
||||
Standard_Real theparamonarc = theparameteronarc;
|
||||
#ifdef DEB
|
||||
Standard_Real anpara=para;
|
||||
#endif
|
||||
//#ifdef DEB
|
||||
// Standard_Real anpara=para;
|
||||
//#endif
|
||||
gp_Pnt CopiePsurf=Psurf;
|
||||
Standard_Boolean ok=IntersectionWithAnArc(CopiePsurf,alin,para,thearc,theparamonarc,thepointonarc,QuadSurf,lower,upper,dist);
|
||||
|
||||
|
@@ -2337,7 +2337,7 @@ void DecomposeResult(Handle(IntPatch_Line)& Line,
|
||||
Standard_Real BSEAM = 1.5*M_PI; // delta U crossing seam
|
||||
Standard_Real BAPEX = M_PI/16.; // delta U crossing apex
|
||||
|
||||
Standard_Integer i = 0, k = 0;
|
||||
Standard_Integer k = 0;
|
||||
Standard_Real U1 = 0., U2 = 0., V1 = 0., V2 = 0., AnU1 = 0., AnV1 = 0., DU1 = 0., DV1 = 0.;
|
||||
Standard_Integer Findex = 1, Lindex = NbPnts, Bindex = 0;
|
||||
|
||||
|
@@ -1395,10 +1395,6 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
|
||||
}
|
||||
else if (typl != IntPatch_Restriction) { // JAG 01.07.96
|
||||
Standard_Real u1,v1,u2,v2;
|
||||
#ifdef DEB
|
||||
Standard_Real paramminonvtx=RealLast();
|
||||
Standard_Real parammaxonvtx=-paramminonvtx;
|
||||
#endif
|
||||
Handle(IntPatch_GLine)& GLine
|
||||
= *((Handle(IntPatch_GLine) *)&L);
|
||||
slin.Clear();
|
||||
|
@@ -194,9 +194,6 @@ Standard_Real IntPatch_Polyhedron::DeflectionOnTriangle
|
||||
gp_XYZ XYZ3=P1.XYZ()-P3.XYZ();
|
||||
gp_Vec NormalVector((XYZ1^XYZ2)+(XYZ2^XYZ3)+(XYZ3^XYZ1));
|
||||
NormalVector.Normalize();
|
||||
#ifdef DEB
|
||||
Standard_Real PolarDistance = NormalVector * P1.XYZ();
|
||||
#endif
|
||||
//-- Calcul du point u,v au centre du triangle
|
||||
Standard_Real u = (u1+u2+u3)/3.0;
|
||||
Standard_Real v = (v1+v2+v3)/3.0;
|
||||
@@ -317,10 +314,6 @@ Standard_Integer IntPatch_Polyhedron::TriConnex (const Standard_Integer Triang,
|
||||
Standard_Integer& TriCon,
|
||||
Standard_Integer& OtherP) const {
|
||||
|
||||
#ifdef DEB
|
||||
Standard_Integer nbdeltaUp1 = nbdeltaU + 1;
|
||||
Standard_Integer nbdeltaUm2 = nbdeltaU + nbdeltaU;
|
||||
#endif
|
||||
Standard_Integer Pivotm1 = Pivot-1;
|
||||
Standard_Integer nbdeltaVp1 = nbdeltaV+1;
|
||||
Standard_Integer nbdeltaVm2 = nbdeltaV + nbdeltaV;
|
||||
|
@@ -28,7 +28,6 @@ Standard_Integer IntPatch_PrmPrmIntersection_T3Bits::And(IntPatch_PrmPrmIntersec
|
||||
Standard_Integer& indice)
|
||||
{
|
||||
int k=indice>>5;
|
||||
Standard_Integer r=0;
|
||||
while(k<Isize)
|
||||
{
|
||||
Standard_Integer r=((Standard_Integer *) p)[k] & ((Standard_Integer *) Oth.p)[k];
|
||||
|
Reference in New Issue
Block a user