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:
@@ -46,20 +46,6 @@
|
||||
#include <BRep_CurveRepresentation.hxx>
|
||||
#include <BRep_GCurve.hxx>
|
||||
|
||||
#ifdef DRAW
|
||||
#include <DBRep.hxx>
|
||||
#endif
|
||||
#ifdef DEB
|
||||
#ifndef WNT
|
||||
extern Standard_Integer AffichInt2d;
|
||||
#else
|
||||
Standard_IMPORT Standard_Boolean AffichInt2d;
|
||||
#endif
|
||||
static Standard_Integer NbF2d = 0;
|
||||
static Standard_Integer NbE2d = 0;
|
||||
static Standard_Integer NbNewVertices = 0;
|
||||
#endif
|
||||
|
||||
#include <Geom_Line.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomConvert_CompCurveToBSplineCurve.hxx>
|
||||
@@ -94,6 +80,13 @@ static Standard_Integer NbNewVertices = 0;
|
||||
#include <BndLib_Add3dCurve.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
|
||||
#ifdef DRAW
|
||||
#include <DBRep.hxx>
|
||||
Standard_IMPORT extern Standard_Boolean AffichInt2d;
|
||||
static Standard_Integer NbF2d = 0;
|
||||
static Standard_Integer NbE2d = 0;
|
||||
static Standard_Integer NbNewVertices = 0;
|
||||
#endif
|
||||
|
||||
//=======================================================================
|
||||
//function : CommonVertex
|
||||
@@ -253,8 +246,7 @@ static void Store (const TopoDS_Edge& E1,
|
||||
#ifdef DRAW
|
||||
if (AffichInt2d) {
|
||||
if (!OnE1 && !OnE2) {
|
||||
//POP pour NT
|
||||
char* name = new char[100];
|
||||
char name[256];
|
||||
sprintf(name,"VV_%d",NbNewVertices++);
|
||||
DBRep::Set(name,V);
|
||||
}
|
||||
@@ -280,8 +272,7 @@ static void EdgeInter(const TopoDS_Face& F,
|
||||
{
|
||||
#ifdef DRAW
|
||||
if (AffichInt2d) {
|
||||
//POP pour NT
|
||||
char* name = new char[100];
|
||||
char name[256];
|
||||
sprintf(name,"E2d_%d_%d",NbF2d,NbE2d++);
|
||||
DBRep::Set(name,E1);
|
||||
sprintf(name,"E2d_%d_%d",NbF2d,NbE2d++);
|
||||
@@ -552,8 +543,7 @@ static void RefEdgeInter(const TopoDS_Face& F,
|
||||
{
|
||||
#ifdef DRAW
|
||||
if (AffichInt2d) {
|
||||
//POP for NT
|
||||
char* name = new char[100];
|
||||
char name[256];
|
||||
sprintf(name,"E2d_%d_%d",NbF2d,NbE2d++);
|
||||
DBRep::Set(name,E1);
|
||||
sprintf(name,"E2d_%d_%d",NbF2d,NbE2d++);
|
||||
@@ -1410,7 +1400,7 @@ void BRepOffset_Inter2d::Compute (const Handle(BRepAlgo_AsDes)& AsDes,
|
||||
const TopTools_IndexedMapOfShape& NewEdges,
|
||||
const Standard_Real Tol)
|
||||
{
|
||||
#ifdef DEB
|
||||
#ifdef DRAW
|
||||
NbF2d++;
|
||||
NbE2d = 0;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user