mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -95,7 +95,7 @@ void BRepClass3d_SClassifier::PerformInfinitePoint(BRepClass3d_SolidExplorer& aS
|
||||
// 1
|
||||
Standard_Boolean bFound, bFlag;
|
||||
Standard_Integer nump;
|
||||
Standard_Real aParam, aU1, aV1, aU2, aV2;
|
||||
Standard_Real aParam, aU1 = 0., aV1 = 0., aU2 = 0., aV2 = 0.;
|
||||
gp_Pnt A,B;
|
||||
gp_Dir aDN1, aDN2;
|
||||
TopoDS_Face aF1, aF2;
|
||||
@@ -274,7 +274,7 @@ void BRepClass3d_SClassifier::Perform(BRepClass3d_SolidExplorer& SolidExplorer,
|
||||
// That's why the main loop while is added.
|
||||
Standard_Boolean isFaultyLine = Standard_True;
|
||||
Standard_Integer anIndFace = 0;
|
||||
Standard_Real parmin;
|
||||
Standard_Real parmin = 0.;
|
||||
|
||||
while (isFaultyLine) {
|
||||
if (anIndFace == 0) {
|
||||
|
Reference in New Issue
Block a user