mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024059: Eliminate compiler warning C4701 in MSVC++ with warning level 4
Removing pPotentially uninitialized local variable Got rid of most of warnings C4701: Potentially uninitialized local variable Removed redundant variable definitions. Refactored a part of AppParCurves_ResolConstraint CTOR. Replaced 0. to Precision::Confusion for tolerance vars; Changed values for min and max parameter vars; Got rid of redundant variables' initialization.
This commit is contained in:
@@ -220,7 +220,7 @@ void HLRAlgo_PolyAlgo::Update ()
|
||||
TColStd_Array1OfTransient& Polyg = (*psd2)->PolyData();
|
||||
Standard_Integer nbFace = Polyg.Upper();
|
||||
Standard_Integer nbFaHi = 0;
|
||||
Handle(HLRAlgo_PolyData)* pd;
|
||||
Handle(HLRAlgo_PolyData)* pd = NULL;
|
||||
if(nbFace > 0) pd = (Handle(HLRAlgo_PolyData)*)&(Polyg.ChangeValue(1));
|
||||
|
||||
for (j = 1; j <= nbFace; j++) {
|
||||
|
@@ -161,8 +161,8 @@ void HLRAlgo_PolyInternalData::UpdateLinks
|
||||
Standard_Address& PINod)
|
||||
{
|
||||
Standard_Integer i,n1,n2;
|
||||
Standard_Integer find,iiii,icsv;
|
||||
Standard_Address A1,A2,A3,Nod1Indices,Nod2Indices,Seg2Indices,Tri2Indices;
|
||||
Standard_Integer find,iiii,icsv = 0;
|
||||
Standard_Address A1,A2,A3,Nod1Indices,Nod2Indices,Seg2Indices = NULL,Tri2Indices;
|
||||
Standard_Boolean newSeg = Standard_False;
|
||||
HLRAlgo_TriangleData* TD =
|
||||
&(((HLRAlgo_Array1OfTData*)TData)->ChangeValue(1));
|
||||
@@ -455,7 +455,7 @@ HLRAlgo_PolyInternalData::UpdateLinks (const Standard_Integer ip1,
|
||||
Standard_Address& )
|
||||
{
|
||||
Standard_Integer find,iiii,iisv,icsv,iip2 =0,cnx1 =0,cnx2 =0;
|
||||
Standard_Address Seg1Indices,Seg2Indices;
|
||||
Standard_Address Seg1Indices,Seg2Indices = NULL;
|
||||
Seg1Indices = 0;
|
||||
find = 0;
|
||||
iisv = 0;
|
||||
|
@@ -97,7 +97,7 @@ UpdateGlobalMinMax(const Standard_Address TotMinMax)
|
||||
}
|
||||
}
|
||||
Standard_Integer nbFace = myPolyg.Upper();
|
||||
Handle(HLRAlgo_PolyData)* pd;
|
||||
Handle(HLRAlgo_PolyData)* pd = NULL;
|
||||
if(nbFace > 0) pd = (Handle(HLRAlgo_PolyData)*)&(myPolyg.ChangeValue(1));
|
||||
|
||||
for (Standard_Integer i = 1; i <= nbFace; i++) {
|
||||
|
Reference in New Issue
Block a user