mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0024236: Eliminate GCC compiler warning (uninitialized variables)
This commit is contained in:
parent
012d92b631
commit
d20d815bbe
@ -237,7 +237,7 @@ static void Locate1Coord(const Standard_Integer Index,
|
|||||||
const Handle(Geom_BSplineCurve)& BSplC,
|
const Handle(Geom_BSplineCurve)& BSplC,
|
||||||
gp_Pnt2d& LeftBot, gp_Pnt2d& RightTop)
|
gp_Pnt2d& LeftBot, gp_Pnt2d& RightTop)
|
||||||
{
|
{
|
||||||
Standard_Real Comp1=0, DComp1=0, cur, f, l;
|
Standard_Real Comp1=0, DComp1=0, cur, f = 0.0, l = 0.0;
|
||||||
Standard_Real Tol = Precision::PConfusion()/10;
|
Standard_Real Tol = Precision::PConfusion()/10;
|
||||||
Standard_Integer i = 1, Bnd1, Bnd2;
|
Standard_Integer i = 1, Bnd1, Bnd2;
|
||||||
Standard_Boolean DIsNull= Standard_False;
|
Standard_Boolean DIsNull= Standard_False;
|
||||||
@ -616,7 +616,7 @@ static void Locate2Coord(const Standard_Integer Index,
|
|||||||
const TColStd_Array1OfReal& Arr,
|
const TColStd_Array1OfReal& Arr,
|
||||||
gp_Pnt2d& LeftBot, gp_Pnt2d& RightTop)
|
gp_Pnt2d& LeftBot, gp_Pnt2d& RightTop)
|
||||||
{
|
{
|
||||||
Standard_Real Comp=0,DComp=0,Tmp1,Tmp2;
|
Standard_Real Comp=0,DComp=0,Tmp1=0.0,Tmp2=0.0;
|
||||||
Standard_Real Tol=Precision::PConfusion()/10;
|
Standard_Real Tol=Precision::PConfusion()/10;
|
||||||
Standard_Integer N, NUp=0, NLo=0;
|
Standard_Integer N, NUp=0, NLo=0;
|
||||||
if(Index==1)
|
if(Index==1)
|
||||||
|
@ -377,7 +377,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
|
|||||||
//Control tangents at the extremities to know if the
|
//Control tangents at the extremities to know if the
|
||||||
//reparametring is possible and calculate the tangents
|
//reparametring is possible and calculate the tangents
|
||||||
//at the extremities of the function of change of variable.
|
//at the extremities of the function of change of variable.
|
||||||
Standard_Real tangent[2];
|
Standard_Real tangent[2] = { 0.0, 0.0 };
|
||||||
gp_Pnt Pcons,Pc3d;
|
gp_Pnt Pcons,Pc3d;
|
||||||
gp_Vec Vcons,Vc3d;
|
gp_Vec Vcons,Vc3d;
|
||||||
|
|
||||||
|
@ -1044,7 +1044,7 @@ void ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
|
|||||||
TopoDS_Face face;
|
TopoDS_Face face;
|
||||||
Standard_Integer jfp = 0,ii;
|
Standard_Integer jfp = 0,ii;
|
||||||
Standard_Integer ic,icplus,icmoins,icplus2,
|
Standard_Integer ic,icplus,icmoins,icplus2,
|
||||||
sense,index,indice,isurf1,isurf2;
|
sense,index = 0,indice,isurf1,isurf2;
|
||||||
Standard_Integer cbplus=0, n3d=0,IVtx = 0,nb;
|
Standard_Integer cbplus=0, n3d=0,IVtx = 0,nb;
|
||||||
Standard_Boolean sameside,trouve,isfirst;
|
Standard_Boolean sameside,trouve,isfirst;
|
||||||
Standard_Real pardeb ,parfin,xdir,ydir;
|
Standard_Real pardeb ,parfin,xdir,ydir;
|
||||||
|
@ -1927,7 +1927,7 @@ void ChFi3d_ChBuilder::ExtentTwoCorner(const TopoDS_Vertex& V,
|
|||||||
|
|
||||||
|
|
||||||
Handle(ChFiDS_ChamfSpine) chsp[2];
|
Handle(ChFiDS_ChamfSpine) chsp[2];
|
||||||
Standard_Real d[4], dis[2];
|
Standard_Real d[4], dis[2] = { 0.0, 0.0 };
|
||||||
Standard_Integer j;
|
Standard_Integer j;
|
||||||
TopoDS_Face F[4];
|
TopoDS_Face F[4];
|
||||||
Standard_Real tmpang, tmd;
|
Standard_Real tmpang, tmd;
|
||||||
|
@ -265,7 +265,7 @@ Standard_Boolean ChFiDS_FilSpine::IsConstant(const Standard_Integer IE)const
|
|||||||
Standard_Real Uf = FirstParameter(IE);
|
Standard_Real Uf = FirstParameter(IE);
|
||||||
Standard_Real Ul = LastParameter(IE);
|
Standard_Real Ul = LastParameter(IE);
|
||||||
|
|
||||||
Standard_Real StartRad, par, rad;
|
Standard_Real StartRad = 0.0, par, rad;
|
||||||
Standard_Integer i;
|
Standard_Integer i;
|
||||||
for (i = 1; i < parandrad.Length(); i++)
|
for (i = 1; i < parandrad.Length(); i++)
|
||||||
{
|
{
|
||||||
|
@ -86,7 +86,7 @@ static void PutPointsOnLine (const Contap_TheSearch& solrst,
|
|||||||
|
|
||||||
gp_Pnt ptonsurf;
|
gp_Pnt ptonsurf;
|
||||||
gp_Vec vectg,normale,tgtrst;
|
gp_Vec vectg,normale,tgtrst;
|
||||||
Standard_Real paramlin;
|
Standard_Real paramlin = 0.0;
|
||||||
|
|
||||||
|
|
||||||
Standard_Integer nbLin = slin.Length();
|
Standard_Integer nbLin = slin.Length();
|
||||||
|
@ -591,7 +591,7 @@ gp_Pnt2d Graphic3d_ArrayOfPrimitives::VertexTexel(const Standard_Integer aRank)
|
|||||||
|
|
||||||
Quantity_Color Graphic3d_ArrayOfPrimitives::BoundColor(const Standard_Integer aRank) const
|
Quantity_Color Graphic3d_ArrayOfPrimitives::BoundColor(const Standard_Integer aRank) const
|
||||||
{
|
{
|
||||||
Standard_Real r,g,b;
|
Standard_Real r = 0.0, g = 0.0, b = 0.0;
|
||||||
BoundColor(aRank,r,g,b);
|
BoundColor(aRank,r,g,b);
|
||||||
return Quantity_Color(r,g,b,Quantity_TOC_RGB);
|
return Quantity_Color(r,g,b,Quantity_TOC_RGB);
|
||||||
}
|
}
|
||||||
|
@ -3124,7 +3124,7 @@ void IntPatch_PrmPrmIntersection::PointDepart(Handle(IntSurf_LineOn2S)& LineOn2S
|
|||||||
//-- aucun point du triangle n a ete trouve assez proche
|
//-- aucun point du triangle n a ete trouve assez proche
|
||||||
//-- on recherche les 3 points les plus proches de P
|
//-- on recherche les 3 points les plus proches de P
|
||||||
//-- dans chacun des tableaux
|
//-- dans chacun des tableaux
|
||||||
Standard_Real Dist3[3],u3[3],v3[3];
|
Standard_Real Dist3[3],u3[3] = { 0.0, 0.0, 0.0 },v3[3] = { 0.0, 0.0, 0.0 };
|
||||||
Dist3[0]=Dist3[1]=Dist3[2]=RealLast();
|
Dist3[0]=Dist3[1]=Dist3[2]=RealLast();
|
||||||
for(U=resu0,i=0; i<SU1; i++,U+=du1) {
|
for(U=resu0,i=0; i<SU1; i++,U+=du1) {
|
||||||
for(V=resv0,j=0; j<SV1; V+=dv1,j++) {
|
for(V=resv0,j=0; j<SV1; V+=dv1,j++) {
|
||||||
|
@ -810,7 +810,7 @@ void Intf_InterferencePolygonPolyhedron::Intersect
|
|||||||
}
|
}
|
||||||
if(NoIntersectionWithTriangle == Standard_False) {
|
if(NoIntersectionWithTriangle == Standard_False) {
|
||||||
gp_XYZ spLieu=BegO.XYZ()+((EndO.XYZ()-BegO.XYZ())*param);
|
gp_XYZ spLieu=BegO.XYZ()+((EndO.XYZ()-BegO.XYZ())*param);
|
||||||
Standard_Real dPiE[3], dPtPi[3], sigd;
|
Standard_Real dPiE[3] = { 0.0, 0.0, 0.0 }, dPtPi[3], sigd;
|
||||||
Standard_Integer is = 0;
|
Standard_Integer is = 0;
|
||||||
Standard_Integer sEdge=-1;
|
Standard_Integer sEdge=-1;
|
||||||
Standard_Integer sVertex=-1;
|
Standard_Integer sVertex=-1;
|
||||||
@ -1092,7 +1092,7 @@ void Intf_InterferencePolygonPolyhedron::Intersect (const gp_Pnt& BegO,
|
|||||||
}
|
}
|
||||||
if(NoIntersectionWithTriangle == Standard_False) {
|
if(NoIntersectionWithTriangle == Standard_False) {
|
||||||
gp_XYZ spLieu=BegO.XYZ()+((EndO.XYZ()-BegO.XYZ())*param);
|
gp_XYZ spLieu=BegO.XYZ()+((EndO.XYZ()-BegO.XYZ())*param);
|
||||||
Standard_Real dPiE[3], dPtPi[3], sigd;
|
Standard_Real dPiE[3] = { 0.0, 0.0, 0.0 }, dPtPi[3], sigd;
|
||||||
Standard_Integer is = 0;
|
Standard_Integer is = 0;
|
||||||
Standard_Integer sEdge=-1;
|
Standard_Integer sEdge=-1;
|
||||||
Standard_Integer sVertex=-1;
|
Standard_Integer sVertex=-1;
|
||||||
|
@ -187,6 +187,7 @@ void OpenGl_View::SetLights (const CALL_DEF_VIEWCONTEXT &AContext)
|
|||||||
for ( ; i < nb_lights; i++, alight++ )
|
for ( ; i < nb_lights; i++, alight++ )
|
||||||
{
|
{
|
||||||
OpenGl_Light rep;
|
OpenGl_Light rep;
|
||||||
|
memset(&rep,0,sizeof(rep));
|
||||||
|
|
||||||
switch( alight->LightType )
|
switch( alight->LightType )
|
||||||
{
|
{
|
||||||
|
@ -467,7 +467,7 @@ void ProjLib_ProjectedCurve::Load(const Handle(Adaptor3d_HCurve)& C)
|
|||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
Standard_Boolean IsTrimmed[2] = {Standard_False, Standard_False};
|
Standard_Boolean IsTrimmed[2] = {Standard_False, Standard_False};
|
||||||
Standard_Real Vsingular[2]; //for surfaces of revolution
|
Standard_Real Vsingular[2] = { 0.0 , 0.0 }; //for surfaces of revolution
|
||||||
Standard_Real f = 0., l = 0., dt = 0.;
|
Standard_Real f = 0., l = 0., dt = 0.;
|
||||||
const Standard_Real eps = 0.01;
|
const Standard_Real eps = 0.01;
|
||||||
|
|
||||||
|
@ -1366,7 +1366,7 @@ QANewModTopOpe_Glue::SectionInsideFace(const TopoDS_Face& theFace,
|
|||||||
|
|
||||||
TopoDS_Edge aEdge;
|
TopoDS_Edge aEdge;
|
||||||
TopoDS_Vertex aVer;
|
TopoDS_Vertex aVer;
|
||||||
Standard_Real aPar, aDist;
|
Standard_Real aPar=0.0, aDist;
|
||||||
if (IsVertexOnFaceBound (aSVer, aFace1, aEdge, aVer, aPar, aDist)) {
|
if (IsVertexOnFaceBound (aSVer, aFace1, aEdge, aVer, aPar, aDist)) {
|
||||||
// aSVer contacts aFace's boundary
|
// aSVer contacts aFace's boundary
|
||||||
|
|
||||||
|
@ -1351,7 +1351,7 @@ Handle(Geom_Curve) ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(cons
|
|||||||
|
|
||||||
gp_Pnt pt;
|
gp_Pnt pt;
|
||||||
Standard_Integer mpt[2]; mpt[0] = mpt[1] = 0;
|
Standard_Integer mpt[2]; mpt[0] = mpt[1] = 0;
|
||||||
Standard_Real t, tpar[2], isoValue=0.;
|
Standard_Real t, tpar[2] = { 0.0, 0.0 }, isoValue=0.;
|
||||||
Standard_Real mindist2;
|
Standard_Real mindist2;
|
||||||
Standard_Real mind2[2];
|
Standard_Real mind2[2];
|
||||||
mindist2 = mind2[0] = mind2[1] = 4*prec*prec;
|
mindist2 = mind2[0] = mind2[1] = 4*prec*prec;
|
||||||
|
@ -333,7 +333,7 @@ static Standard_Boolean FUN_GeomTrans(const Handle(Geom_Surface)& S1,
|
|||||||
gp_Pnt P1; gp_Vec D1_C1; C1->D1(T1,P1,D1_C1);
|
gp_Pnt P1; gp_Vec D1_C1; C1->D1(T1,P1,D1_C1);
|
||||||
|
|
||||||
// D1_C2 : D1(C2(P1))
|
// D1_C2 : D1(C2(P1))
|
||||||
Standard_Real T2;
|
Standard_Real T2 = 0.0;
|
||||||
Standard_Boolean projok = ::FUN_ProjectPoint(P1,C2,FC2,LC2,T2);
|
Standard_Boolean projok = ::FUN_ProjectPoint(P1,C2,FC2,LC2,T2);
|
||||||
if ( !projok ) {
|
if ( !projok ) {
|
||||||
return Standard_False;
|
return Standard_False;
|
||||||
|
@ -176,7 +176,7 @@ void TopOpeBRepDS_Edge3dInterferenceTool::Init
|
|||||||
|
|
||||||
myTole = Precision::Angular(); // NYI
|
myTole = Precision::Angular(); // NYI
|
||||||
|
|
||||||
Standard_Real pref; Standard_Boolean ok = ::FUN_hasparam(I, pref);
|
Standard_Real pref=0.0; Standard_Boolean ok = ::FUN_hasparam(I, pref);
|
||||||
if (!ok) {FUN_Raise(); return;}
|
if (!ok) {FUN_Raise(); return;}
|
||||||
// <myP3d> :
|
// <myP3d> :
|
||||||
{
|
{
|
||||||
|
@ -91,7 +91,7 @@ Standard_EXPORT Standard_Boolean FUN_HDS_FACESINTERFER
|
|||||||
TopOpeBRepDS_ListIteratorOfListOfInterference itL1(L1);
|
TopOpeBRepDS_ListIteratorOfListOfInterference itL1(L1);
|
||||||
for (;itL1.More(); itL1.Next()) {
|
for (;itL1.More(); itL1.Next()) {
|
||||||
const Handle(TopOpeBRepDS_Interference)& I = itL1.Value();
|
const Handle(TopOpeBRepDS_Interference)& I = itL1.Value();
|
||||||
TopOpeBRepDS_Kind GT,ST;Standard_Integer G,S;
|
TopOpeBRepDS_Kind GT = TopOpeBRepDS_UNKNOWN, ST = TopOpeBRepDS_UNKNOWN; Standard_Integer G,S = 0;
|
||||||
FUN_HDS_data(I,GT,G,ST,S);
|
FUN_HDS_data(I,GT,G,ST,S);
|
||||||
// interference face1/edge/face2
|
// interference face1/edge/face2
|
||||||
Standard_Boolean fef = Standard_True;
|
Standard_Boolean fef = Standard_True;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user