mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -45,7 +45,7 @@ void RWStepElement_RWElementDescriptor::ReadStep (const Handle(StepData_StepRead
|
||||
|
||||
// Own fields of ElementDescriptor
|
||||
|
||||
StepElement_ElementOrder aTopologyOrder;
|
||||
StepElement_ElementOrder aTopologyOrder = StepElement_Linear;
|
||||
if (data->ParamType (num, 1) == Interface_ParamEnum) {
|
||||
Standard_CString text = data->ParamCValue(num, 1);
|
||||
if (strcmp(text, ".LINEAR.") == 0) aTopologyOrder = StepElement_Linear;
|
||||
|
Reference in New Issue
Block a user