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:
@@ -579,11 +579,9 @@ TopoDS_Solid BRepFeat::Tool(const TopoDS_Shape& SRef,
|
||||
|
||||
|
||||
Sh.Orientation(TopAbs_FORWARD);
|
||||
#ifdef DEB
|
||||
TopAbs_Orientation orient;
|
||||
#else
|
||||
|
||||
TopAbs_Orientation orient = TopAbs_FORWARD;
|
||||
#endif
|
||||
|
||||
for (exp.Init(Sh,TopAbs_FACE); exp.More(); exp.Next()) {
|
||||
if (exp.Current().IsSame(Fac)) {
|
||||
orient = exp.Current().Orientation();
|
||||
|
Reference in New Issue
Block a user