1
0
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:
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

@@ -48,7 +48,7 @@ void RWStepElement_RWCurve3dElementDescriptor::ReadStep (const Handle(StepData_S
// Inherited fields of ElementDescriptor
StepElement_ElementOrder aElementDescriptor_TopologyOrder;
StepElement_ElementOrder aElementDescriptor_TopologyOrder = StepElement_Linear;
if (data->ParamType (num, 1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 1);
if (strcmp(text, ".LINEAR.")==0) aElementDescriptor_TopologyOrder = StepElement_Linear;

View File

@@ -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;

View File

@@ -48,7 +48,7 @@ void RWStepElement_RWSurface3dElementDescriptor::ReadStep (const Handle(StepData
// Inherited fields of ElementDescriptor
StepElement_ElementOrder aElementDescriptor_TopologyOrder;
StepElement_ElementOrder aElementDescriptor_TopologyOrder = StepElement_Linear;
if (data->ParamType (num, 1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 1);
if (!strcmp(text, ".LINEAR.")) aElementDescriptor_TopologyOrder = StepElement_Linear;
@@ -86,7 +86,7 @@ void RWStepElement_RWSurface3dElementDescriptor::ReadStep (const Handle(StepData
}
}
StepElement_Element2dShape aShape;
StepElement_Element2dShape aShape = StepElement_Quadrilateral;
if (data->ParamType (num, 4) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 4);
if (!strcmp(text, ".QUADRILATERAL.")) aShape = StepElement_Quadrilateral;

View File

@@ -47,7 +47,7 @@ void RWStepElement_RWVolume3dElementDescriptor::ReadStep (const Handle(StepData_
// Inherited fields of ElementDescriptor
StepElement_ElementOrder aElementDescriptor_TopologyOrder;
StepElement_ElementOrder aElementDescriptor_TopologyOrder = StepElement_Linear;
if (data->ParamType (num, 1) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 1);
if (!strcmp(text, ".LINEAR.")) aElementDescriptor_TopologyOrder = StepElement_Linear;
@@ -77,7 +77,7 @@ void RWStepElement_RWVolume3dElementDescriptor::ReadStep (const Handle(StepData_
}
}
StepElement_Volume3dElementShape aShape;
StepElement_Volume3dElementShape aShape = StepElement_Hexahedron;
if (data->ParamType (num, 4) == Interface_ParamEnum) {
Standard_CString text = data->ParamCValue(num, 4);
if (!strcmp(text, ".HEXAHEDRON.")) aShape = StepElement_Hexahedron;