1
0
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:
abv
2014-02-14 16:03:01 +04:00
committed by apn
parent 03e04ead37
commit 1896126e35
18 changed files with 98 additions and 161 deletions

View File

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