mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +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:
@@ -88,7 +88,7 @@ Matches(const Standard_Real X,
|
||||
Standard_Real& DMin)
|
||||
{
|
||||
Standard_Real DMin2 = 0.;
|
||||
Standard_Real Xmin,Ymin,Xmax,Ymax;
|
||||
Standard_Real Xmin = 0.,Ymin = 0.,Xmax = 0.,Ymax = 0.;
|
||||
if(!Bnd_Box2d(mybox2d).IsVoid())
|
||||
{
|
||||
Bnd_Box2d(mybox2d).Get(Xmin,Ymin,Xmax,Ymax);
|
||||
|
Reference in New Issue
Block a user