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:
@@ -254,7 +254,7 @@ TopoDS_Edge BRepAlgo::ConcatenateWireC0(const TopoDS_Wire& aWire)
|
||||
TColStd_SequenceOfReal FparSeq;
|
||||
TColStd_SequenceOfReal LparSeq;
|
||||
TColStd_SequenceOfReal TolSeq;
|
||||
GeomAbs_CurveType CurType;
|
||||
GeomAbs_CurveType CurType = GeomAbs_OtherCurve;
|
||||
TopoDS_Vertex FirstVertex, LastVertex;
|
||||
Standard_Boolean FinalReverse = Standard_False;
|
||||
|
||||
@@ -294,7 +294,7 @@ TopoDS_Edge BRepAlgo::ConcatenateWireC0(const TopoDS_Wire& aWire)
|
||||
else
|
||||
{
|
||||
Standard_Boolean Done = Standard_False;
|
||||
Standard_Real NewFpar, NewLpar;
|
||||
Standard_Real NewFpar = 0., NewLpar = 0.;
|
||||
GeomAdaptor_Curve GAprevcurve(CurveSeq.Last());
|
||||
TopoDS_Vertex CurVertex = wexp.CurrentVertex();
|
||||
TopoDS_Vertex CurFirstVer = TopExp::FirstVertex(anEdge);
|
||||
|
Reference in New Issue
Block a user