mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -1185,11 +1185,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
|
||||
const Handle(Adaptor3d_TopolTool)& myDom2,
|
||||
const Standard_Real TolArc) {
|
||||
|
||||
#ifndef DEB
|
||||
Standard_Integer i=1,nbvtx;
|
||||
#else
|
||||
Standard_Integer i,nbvtx;
|
||||
#endif
|
||||
Standard_Real firstp,lastp;
|
||||
Standard_Real Tol = Precision::PConfusion()*100.; // JMB le 13 Jan 2000. Report de la correction du PRO19653
|
||||
GeomAbs_SurfaceType typs1 = mySurf1->GetType();
|
||||
|
@@ -339,11 +339,7 @@ Standard_Integer IntPatch_Polyhedron::TriConnex (const Standard_Integer Triang,
|
||||
Standard_Integer colP = Pivotm1 - ligP * nbdeltaVp1;
|
||||
|
||||
// Point sur Edge position in the MaTriangle and edge typ :
|
||||
#ifndef DEB
|
||||
Standard_Integer ligE = 0, colE = 0, typE = 0;
|
||||
#else
|
||||
Standard_Integer ligE, colE, typE;
|
||||
#endif
|
||||
if (Pedge!=0) {
|
||||
ligE= (Pedge-1)/nbdeltaVp1;
|
||||
colE= (Pedge-1) - (ligE * nbdeltaVp1);
|
||||
@@ -359,13 +355,8 @@ Standard_Integer IntPatch_Polyhedron::TriConnex (const Standard_Integer Triang,
|
||||
}
|
||||
|
||||
// Triangle position General case :
|
||||
#ifndef DEB
|
||||
Standard_Integer linT = 0, colT = 0;
|
||||
Standard_Integer linO = 0, colO = 0;
|
||||
#else
|
||||
Standard_Integer linT, colT;
|
||||
Standard_Integer linO, colO;
|
||||
#endif
|
||||
Standard_Integer t,tt;
|
||||
if (Triang!=0) {
|
||||
t = (Triang-1)/(nbdeltaVm2);
|
||||
|
Reference in New Issue
Block a user