1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +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:
abv
2012-12-10 16:53:05 +04:00
committed by omy
parent bd92cc2a59
commit 7a06c690fb
81 changed files with 17 additions and 617 deletions

View File

@@ -107,10 +107,8 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
return UFirst - fp;
case GeomAbs_Circle:
return C.Circle().Radius()*(UFirst-fp);
#ifndef DEB
default:
break;
#endif
}
Standard_NotImplemented::Raise("calcul abscisse not processed");
return 0.;
@@ -135,11 +133,7 @@ static Standard_Real ComputeAbscissa(const BRepAdaptor_Curve& C,
Handle(ChFiDS_FilSpine) Spine = Handle(ChFiDS_FilSpine)::DownCast(Sp);
Handle(ChFiDS_ChamfSpine) CSpine = Handle(ChFiDS_ChamfSpine)::DownCast(Sp);
#ifndef DEB
Standard_Boolean surfok = Standard_False;
#else
Standard_Boolean surfok;
#endif
GeomAbs_SurfaceType typ1 = S1->GetType();
GeomAbs_SurfaceType typ2 = S2->GetType();
GeomAbs_CurveType ctyp;

View File

@@ -392,11 +392,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
gp_Vec DirSOrC = VecTranslCyl.Normalized();
Standard_Real cosA1 = DirSOrC.Dot(VecTranslPln.Normalized());
Standard_Real sinA1 = Sqrt(1. - cosA1 * cosA1);
#ifndef DEB
Standard_Real dis1 = 0.;
#else
Standard_Real dis1;
#endif
Standard_Real dis2, ray = Cyl.Radius();
Standard_Boolean IsDisOnP = ( (plandab && DisOnP) || (!plandab && !DisOnP) );