mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50: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:
@@ -129,7 +129,7 @@ Standard_Boolean NIS_View::FitAll3d (const Quantity_Coefficient theCoef)
|
||||
// Check that the box is not empty
|
||||
if (aBox.IsVoid() == Standard_False && MyView->IsDefined() == Standard_True) {
|
||||
// Convert the 3D box to 2D representation in view coordinates
|
||||
Standard_Real Umin,Umax,Vmin,Vmax,U,V,W;
|
||||
Standard_Real Umin = 0.,Umax = 0.,Vmin = 0.,Vmax = 0.,U,V,W;
|
||||
gp_XYZ aCoord;
|
||||
|
||||
const gp_XYZ aCorner[2] = { aBox.CornerMin(), aBox.CornerMax() };
|
||||
|
Reference in New Issue
Block a user