mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +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:
@@ -861,7 +861,7 @@ void ComputeInternalPointsOnRstr
|
||||
gp_Pnt2d p2d;
|
||||
gp_Vec2d d2d;
|
||||
Standard_Boolean found,ok = Standard_False,toutvu,solution;
|
||||
Standard_Real paramp,paraminf,paramsup,toler;
|
||||
Standard_Real paramp = 0.,paraminf,paramsup,toler;
|
||||
|
||||
if (Line.TypeContour() != Contap_Restriction) {
|
||||
return;
|
||||
|
@@ -156,7 +156,7 @@ IntSurf_TypeTrans ComputeTransitionOngpLine
|
||||
gp_Pnt P;
|
||||
gp_Vec T;
|
||||
ElCLib::D1(0.0,L,P,T);
|
||||
Standard_Real u,v;
|
||||
Standard_Real u = 0.,v = 0.;
|
||||
switch (typS) {
|
||||
case GeomAbs_Cylinder: {
|
||||
ElSLib::Parameters(TheSurfaceTool::Cylinder(Surf),P,u,v);
|
||||
@@ -186,7 +186,7 @@ IntSurf_TypeTrans ComputeTransitionOngpCircle
|
||||
gp_Pnt P;
|
||||
gp_Vec T;
|
||||
ElCLib::D1(0.0,C,P,T);
|
||||
Standard_Real u,v;
|
||||
Standard_Real u = 0.,v = 0.;
|
||||
switch (typS) {
|
||||
case GeomAbs_Cylinder: {
|
||||
ElSLib::Parameters(TheSurfaceTool::Cylinder(Surf),P,u,v);
|
||||
|
Reference in New Issue
Block a user