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

@@ -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

View File

@@ -35,15 +35,10 @@
#ifdef DRAW
#include <DBRep.hxx>
#endif
#ifdef DEB
Standard_Integer NbF = 1;
static Standard_Boolean Affich = Standard_False;
//POP pour NT
//char name[100];
#endif
BRepOffset_MakeLoops::BRepOffset_MakeLoops()
{
}
@@ -444,9 +439,8 @@ void BRepOffset_MakeLoops::BuildFaces(const TopTools_ListOfShape& LF,
}
if (ToRebuild) {
#ifdef DRAW
//POP for NT
if ( Affich) {
char* name = new char[100];
char name[256];
sprintf(name,"CF_%d",NbF++);
DBRep::Set(name,F);
}

View File

@@ -143,20 +143,17 @@
#ifdef DRAW
#include <DBRep.hxx>
#endif
#ifdef DEB
Standard_Boolean AffichInter = Standard_False;
static Standard_Boolean AffichExtent = Standard_False;
static Standard_Integer NbNewEdges = 1;
static Standard_Integer NbFaces = 1;
static Standard_Integer NbFOB = 1;
static Standard_Integer NbFTE = 1;
static Standard_Integer NbExtE = 1;
//POP pour NT
//char* name = new char[100];
#endif
#ifdef DEB
static Standard_Boolean AffichExtent = Standard_False;
#endif
//=======================================================================
//function : EdgeVertices
@@ -730,8 +727,7 @@ void BRepOffset_Tool::PipeInter(const TopoDS_Face& F1,
{
#ifdef DRAW
if (AffichInter) {
// POP pour NT
char* name = new char[100];
char name[256];
sprintf(name,"FF_%d",NbFaces++);
DBRep::Set(name,F1);
sprintf(name,"FF_%d",NbFaces++);
@@ -779,8 +775,7 @@ void BRepOffset_Tool::PipeInter(const TopoDS_Face& F1,
L2.Append (E.Oriented(O2));
#ifdef DRAW
if (AffichInter) {
// POP pour NT
char* name = new char[100];
char name[256];
sprintf(name,"EI_%d",NbNewEdges++);
DBRep::Set(name,E.Oriented(O1));
}
@@ -1572,8 +1567,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
{
#ifdef DRAW
if (AffichInter) {
// POP pour NT
char* name = new char[100];
char name[256];
sprintf(name,"FF_%d",NbFaces++);
DBRep::Set(name,F1);
sprintf(name,"FF_%d",NbFaces++);
@@ -1695,7 +1689,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
#ifdef DRAW
if (AffichInter) {
char* name = new char[100];
char name[256];
sprintf(name,"EI_%d",NbNewEdges++);
DBRep::Set(name,anEdge.Oriented(O1));
@@ -1943,8 +1937,7 @@ Standard_Boolean BRepOffset_Tool::TryProject
{
#ifdef DRAW
if (AffichInter) {
// POP pour NT
char* name = new char[100];
char name[256];
sprintf(name,"FF_%d",NbFaces++);
DBRep::Set(name,F1);
sprintf(name,"FF_%d",NbFaces++);
@@ -1987,9 +1980,8 @@ Standard_Boolean BRepOffset_Tool::TryProject
LInt2.Append (CurE.Oriented(O2));
#ifdef DRAW
if (AffichInter) {
// POP pour NT
char* name = new char[100];
sprintf(name,"EI_%d",NbNewEdges++);
char name[256];
sprintf(name,"EI_%d",NbNewEdges++);
DBRep::Set(name,CurE.Oriented(O1));
}
#endif
@@ -2014,8 +2006,7 @@ void BRepOffset_Tool::InterOrExtent(const TopoDS_Face& F1,
{
#ifdef DRAW
if (AffichInter) {
// POP pour NT
char* name = new char[100];
char name[256];
sprintf(name,"FF_%d",NbFaces++);
DBRep::Set(name,F1);
sprintf(name,"FF_%d",NbFaces++);
@@ -2064,8 +2055,7 @@ void BRepOffset_Tool::InterOrExtent(const TopoDS_Face& F1,
L2.Append (E.Oriented(O2));
#ifdef DRAW
if (AffichInter) {
// POP pour NT
char* name = new char[100];
char name[256];
sprintf(name,"EI_%d",NbNewEdges++);
DBRep::Set(name,E.Oriented(O1));
}
@@ -2153,7 +2143,7 @@ static void ExtentEdge(const TopoDS_Face& F,
NE.Orientation(E.Orientation());
#ifdef DRAW
if (AffichExtent) {
char* name = new char[100];
char name[256];
sprintf (name,"F_%d",NbExtE);
DBRep::Set(name,EF);
sprintf (name,"OE_%d",NbExtE);
@@ -3467,8 +3457,7 @@ void BRepOffset_Tool::ExtentFace (const TopoDS_Face& F,
{
#ifdef DRAW
if (AffichInter) {
// POP pour NT
char* name = new char[100];
char name[256];
sprintf(name,"FTE_%d",NbFTE++);
DBRep::Set(name,F);
}
@@ -3886,8 +3875,7 @@ void BRepOffset_Tool::ExtentFace (const TopoDS_Face& F,
#ifdef DRAW
if (AffichInter) {
// POP pour NT
char* name = new char[100];
char name[256];
sprintf(name,"FOB_%d",NbFOB++);
DBRep::Set(name,NF);
}