mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
@@ -270,7 +270,7 @@ void AIS_Axis::ComputeFields()
|
||||
gp_Dir oX = myAx2->Ax2().XDirection();
|
||||
gp_Dir oY = myAx2->Ax2().YDirection();
|
||||
gp_Dir oZ = myAx2->Ax2().Direction();
|
||||
Quantity_Length xo,yo,zo,x,y,z;
|
||||
Quantity_Length xo,yo,zo,x = 0.,y = 0.,z = 0.;
|
||||
Orig.Coord(xo,yo,zo);
|
||||
myPfirst.SetCoord(xo,yo,zo);
|
||||
|
||||
|
Reference in New Issue
Block a user