mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024635: Eliminate trivial compiler warnings by GCC in Debug mode
This commit is contained in:
@@ -38,11 +38,10 @@
|
||||
|
||||
#ifdef DRAW
|
||||
#include <DrawTrSurf.hxx>
|
||||
#endif
|
||||
#ifdef DEB
|
||||
static Standard_Boolean Affich = Standard_False;
|
||||
static Standard_Integer NbSECTIONS = 0;
|
||||
#endif
|
||||
|
||||
//#define GF_DEB
|
||||
//=======================================================================
|
||||
//function : GeomFill_SweepSectionGenerator
|
||||
@@ -580,9 +579,7 @@ void GeomFill_SweepSectionGenerator::Section
|
||||
}
|
||||
#ifdef DRAW
|
||||
if ( Affich) {
|
||||
//POP pour NT
|
||||
// char name[100];
|
||||
char* name = new char[100];
|
||||
char name[256];
|
||||
sprintf(name,"SECTION_%d",++NbSECTIONS);
|
||||
DrawTrSurf::Set(name,myFirstSect->Transformed(cumulTR));
|
||||
}
|
||||
@@ -651,9 +648,7 @@ void GeomFill_SweepSectionGenerator::Section
|
||||
|
||||
#ifdef DRAW
|
||||
if ( Affich) {
|
||||
// POP pour NT
|
||||
// char name[100];
|
||||
char* name = new char[100];
|
||||
char name[256];
|
||||
sprintf(name,"SECTION_%d",++NbSECTIONS);
|
||||
DrawTrSurf::Set(name,BS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user