1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +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:
omy
2013-08-22 12:07:14 +04:00
committed by bugmaster
parent 99d99a6db2
commit 1d47d8d066
196 changed files with 671 additions and 817 deletions

View File

@@ -337,11 +337,9 @@ static Standard_Integer smoothing (Draw_Interpretor& di,Standard_Integer n, cons
//
{
Standard_Real Tolerance=0;
#ifdef DEB
AppParCurves_Constraint Constraint;
#else
AppParCurves_Constraint Constraint=AppParCurves_NoConstraint;
#endif
Handle(AppParCurves_HArray1OfConstraintCouple)TABofCC;
TABofCC.Nullify();
Handle(AppDef_HArray1OfMultiPointConstraint) Points;
@@ -506,11 +504,7 @@ static Standard_Integer smoothingbybezier (Draw_Interpretor& di,
//============================================================================
{
Standard_Real Tolerance=0;
#ifdef DEB
AppParCurves_Constraint Constraint;
#else
AppParCurves_Constraint Constraint=AppParCurves_NoConstraint;
#endif
AppParCurves_Constraint Constraint = AppParCurves_NoConstraint;
Handle(AppParCurves_HArray1OfConstraintCouple)TABofCC;
Handle(AppDef_HArray1OfMultiPointConstraint) Points;