1
0
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:
omy
2013-08-22 12:07:14 +04:00
committed by bugmaster
parent 99d99a6db2
commit 1d47d8d066
196 changed files with 671 additions and 817 deletions

View File

@@ -81,7 +81,7 @@ Standard_Integer DetectKPart(const TopoDS_Edge& Edge1,
Standard_Integer IType = 0;
// characteristics of the first edge
Standard_Real first1, last1, first2, last2, ff, ll;
Standard_Real first1 = 0., last1 = 0., first2, last2, ff, ll;
TopLoc_Location loc;
TopoDS_Vertex V1, V2;
Handle(Geom_Curve) curv1, curv;
@@ -542,7 +542,7 @@ void BRepFill_Generator::Perform()
BRepTools_WireExplorer ex1,ex2;
Standard_Boolean wPoint1, wPoint2, uClosed, DegenFirst, DegenLast;
Standard_Boolean wPoint1, wPoint2, uClosed = Standard_False, DegenFirst = Standard_False, DegenLast = Standard_False;
for ( Standard_Integer i = 1; i <= Nb-1; i++) {