mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0023604: Uninitialized variables in debug mode
Removed #ifndef DEB ... #else ... #endif directives where the variables were being initialized only in release mode. Removed unused part of code.
This commit is contained in:
@@ -87,11 +87,7 @@ Matches(const Standard_Real X,
|
||||
const Standard_Real aTol,
|
||||
Standard_Real& DMin)
|
||||
{
|
||||
#ifndef DEB
|
||||
Standard_Real DMin2 = 0.;
|
||||
#else
|
||||
Standard_Real DMin2;
|
||||
#endif
|
||||
Standard_Real Xmin,Ymin,Xmax,Ymax;
|
||||
if(!Bnd_Box2d(mybox2d).IsVoid())
|
||||
{
|
||||
|
@@ -98,10 +98,8 @@ Matches(const Standard_Real X,
|
||||
case Select3D_TOS_INTERIOR:
|
||||
Res = Status(X,Y,aTol,DMin);
|
||||
return (Res==0 || Res == 1);
|
||||
#ifndef DEB
|
||||
default:
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
return Standard_True;
|
||||
}
|
||||
|
Reference in New Issue
Block a user