mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +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:
@@ -908,7 +908,7 @@ Standard_Integer IntTools_BeanFaceIntersector::FastComputeExactIntersection()
|
||||
}
|
||||
//
|
||||
if(aAng2<=aTolang2) {// IsParallel = Standard_True;
|
||||
Standard_Boolean bFlag;
|
||||
Standard_Boolean bFlag = Standard_False;
|
||||
Standard_Integer i;
|
||||
Standard_Real aD;
|
||||
gp_Pnt aPL[2];
|
||||
|
@@ -518,7 +518,7 @@ Standard_Boolean
|
||||
IntTools_ComparatorCurve::IsSameXYZ(const gp_XYZ& aXYZ1,
|
||||
const gp_XYZ& aXYZ2)
|
||||
{
|
||||
Standard_Boolean bRet;
|
||||
Standard_Boolean bRet = Standard_False;
|
||||
Standard_Integer i;
|
||||
Standard_Real aX1[3], aX2[3];
|
||||
|
||||
|
@@ -427,7 +427,7 @@ void IntTools_EdgeFace::CheckData()
|
||||
myC.D0(t, P);
|
||||
GeomAPI_ProjectPointOnSurf aProjector;
|
||||
//
|
||||
Standard_Real ULD, VLD;
|
||||
Standard_Real ULD = 0., VLD = 0.;
|
||||
|
||||
GeomAPI_ProjectPointOnSurf& aLocProj = myContext->ProjPS(myFace);
|
||||
aLocProj.Perform(P);
|
||||
|
Reference in New Issue
Block a user