mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024635: Eliminate trivial compiler warnings by GCC in Debug mode
This commit is contained in:
@@ -126,9 +126,6 @@
|
||||
#include <DBRep.hxx>
|
||||
#include <DrawTrSurf.hxx>
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#ifdef DEB
|
||||
static Standard_Boolean AffichGeom = Standard_False;
|
||||
static Standard_Boolean AffichEdge = Standard_False;
|
||||
static Standard_Integer NbFACES = 0;
|
||||
@@ -136,10 +133,6 @@ static Standard_Integer NbTRIMFACES = 0;
|
||||
static Standard_Integer NbVEVOS = 0;
|
||||
static Standard_Integer NbPROFILS = 0;
|
||||
static Standard_Integer NbEDGES = 0;
|
||||
// POP for NT
|
||||
#ifndef WNT
|
||||
static char name[100];
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static const Standard_Real BRepFill_Confusion()
|
||||
@@ -687,6 +680,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
char name[100];
|
||||
sprintf(name,"PROFIL_%d",++NbPROFILS);
|
||||
DBRep::Set(name,Pr);
|
||||
}
|
||||
@@ -984,6 +978,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
char name[100];
|
||||
sprintf(name,"ARCEDGE_%d_%d_%d",i,vv,Ti);
|
||||
DBRep::Set(name,CurrentEdge);
|
||||
}
|
||||
@@ -1069,7 +1064,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout << " End of Construction of edges and vertices on bissectrices"<<endl;
|
||||
}
|
||||
@@ -1134,6 +1129,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
char name[100];
|
||||
sprintf(name,"PAREDGE_%d_%d",++NbEDGES,k);
|
||||
DBRep::Set(name,S.Value(k));
|
||||
}
|
||||
@@ -1171,6 +1167,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
char name[100];
|
||||
sprintf(name,"PAREDGE_%d_%d",++NbEDGES,k);
|
||||
DBRep::Set(name,S.Value(k));
|
||||
}
|
||||
@@ -1254,6 +1251,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face& Sp,
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout <<" End of construction of an elementary volevo."<<endl;
|
||||
char name[100];
|
||||
sprintf(name,"VEVO_%d",++NbVEVOS);
|
||||
DBRep::Set(name,myShape);
|
||||
}
|
||||
@@ -1360,6 +1358,7 @@ void BRepFill_Evolved::PlanarPerform (const TopoDS_Face& Sp,
|
||||
TopTools_DataMapIteratorOfDataMapOfShapeShape it(MapVP);
|
||||
Standard_Integer k = 0;
|
||||
for (; it.More(); it.Next()) {
|
||||
char name[100];
|
||||
sprintf(name,"PARALI_%d",++k);
|
||||
DBRep::Set(name,it.Value());
|
||||
}
|
||||
@@ -1463,6 +1462,7 @@ void BRepFill_Evolved::VerticalPerform (const TopoDS_Face& Sp,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
char name[100];
|
||||
sprintf(name,"PARALI_%d",++NbVEVOS);
|
||||
DBRep::Set(name,Base);
|
||||
}
|
||||
@@ -1471,6 +1471,7 @@ void BRepFill_Evolved::VerticalPerform (const TopoDS_Face& Sp,
|
||||
BRepSweep_Prism PS(Base,gp_Vec(0,0,Alt2 - Alt1),Standard_False);
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
char name[100];
|
||||
sprintf(name,"PRISM_%d",NbVEVOS);
|
||||
DBRep::Set(name,PS.Shape());
|
||||
}
|
||||
@@ -1732,6 +1733,7 @@ const
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
char name[100];
|
||||
sprintf(name,"workspine");
|
||||
DBRep::Set(name,WorkSpine);
|
||||
}
|
||||
@@ -2214,6 +2216,7 @@ void BRepFill_Evolved::MakePipe(const TopoDS_Edge& SE,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichGeom) {
|
||||
char name[100];
|
||||
sprintf(name,"EVOLBASE_%d",++NbFACES);
|
||||
DBRep::Set(name,SE);
|
||||
sprintf(name,"EVOLPROF_%d",NbFACES);
|
||||
@@ -2226,6 +2229,7 @@ void BRepFill_Evolved::MakePipe(const TopoDS_Edge& SE,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichGeom) {
|
||||
char name[100];
|
||||
sprintf(name,"EVOL_%d",++NbFACES);
|
||||
DBRep::Set(name,Pipe.Shape());
|
||||
}
|
||||
@@ -2303,9 +2307,9 @@ void BRepFill_Evolved::MakeRevol(const TopoDS_Edge& SE,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichGeom) {
|
||||
char name[100];
|
||||
sprintf(name,"EVOLBASE_%d",++NbFACES);
|
||||
char* Temp = name ;
|
||||
DrawTrSurf::Set(Temp,new Geom_Line(AxeRev));
|
||||
DrawTrSurf::Set(name,new Geom_Line(AxeRev));
|
||||
// DrawTrSurf::Set(name,new Geom_Line(AxeRev));
|
||||
sprintf(name,"EVOLPROF_%d",NbFACES);
|
||||
DBRep::Set(name,GenProf);
|
||||
@@ -2407,6 +2411,7 @@ void BRepFill_Evolved::TransformInitWork(const TopLoc_Location& LS,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
char name[100];
|
||||
sprintf(name,"movedspine");
|
||||
TopoDS_Face SL = mySpine;
|
||||
DBRep::Set(name,SL);
|
||||
|
@@ -47,12 +47,10 @@
|
||||
|
||||
#ifdef DRAW
|
||||
#include <DrawTrSurf.hxx>
|
||||
#endif
|
||||
|
||||
#ifdef DEB
|
||||
static Standard_Boolean AffichCurve = Standard_False;
|
||||
static Standard_Integer NbProj = 1;
|
||||
#endif
|
||||
|
||||
//POP pour NT
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -506,9 +504,7 @@ void BRepFill_MultiLine::Curves(Handle(Geom_Curve)& Curve,
|
||||
|
||||
#ifdef DRAW
|
||||
if ( AffichCurve) {
|
||||
//POP pour NT
|
||||
// char name[100];
|
||||
char* name = new char[100];
|
||||
char name[100];
|
||||
sprintf(name,"C2_%d",NbProj);
|
||||
DrawTrSurf::Set(name,TLine);
|
||||
sprintf(name,"C3_%d",NbProj);
|
||||
|
@@ -105,9 +105,6 @@
|
||||
#include <DrawTrSurf.hxx>
|
||||
#include <DrawTrSurf_Curve2d.hxx>
|
||||
#include <DBRep.hxx>
|
||||
#endif
|
||||
|
||||
#ifdef DEB
|
||||
static Standard_Boolean AffichGeom = Standard_False;
|
||||
static Standard_Boolean Affich2d = Standard_False;
|
||||
static Standard_Boolean AffichEdge = Standard_False;
|
||||
@@ -115,10 +112,6 @@ static Standard_Integer NbTRIMEDGES = 0;
|
||||
static Standard_Integer NbOFFSET = 0;
|
||||
static Standard_Integer NbEDGES = 0;
|
||||
static Standard_Integer NbBISSEC = 0;
|
||||
#ifndef WNT
|
||||
static char tname[100];
|
||||
static Standard_CString name = tname ;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Modified by Sergey KHROMOV - Thu Nov 16 17:24:39 2000 Begin
|
||||
@@ -602,8 +595,6 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
|
||||
|
||||
if(aSubst.IsCopied(myWorkSpine)) {
|
||||
myWorkSpine = TopoDS::Face(aSubst.Copy(myWorkSpine).First());
|
||||
//sprintf(name,"WS1");
|
||||
//DBRep::Set(name,myWorkSpine);
|
||||
|
||||
BRepMAT2d_Explorer newExp;
|
||||
newExp.Perform(myWorkSpine);
|
||||
@@ -788,7 +779,7 @@ void BRepFill_OffsetWire::PerformWithBiLo
|
||||
}
|
||||
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout << " End Construction of geometric primitives "<<endl;
|
||||
}
|
||||
@@ -816,6 +807,7 @@ void BRepFill_OffsetWire::PerformWithBiLo
|
||||
|
||||
#ifdef DRAW
|
||||
if ( AffichGeom) {
|
||||
char name[256];
|
||||
sprintf(name,"BISSEC_%d",NbBISSEC++);
|
||||
DrawTrSurf::Set(name,Bisec.Value());
|
||||
}
|
||||
@@ -967,7 +959,7 @@ void BRepFill_OffsetWire::PerformWithBiLo
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef DRAW
|
||||
if (AffichEdge) {
|
||||
cout << " End Construction of vertices on offsets"<<endl;
|
||||
}
|
||||
@@ -1192,8 +1184,7 @@ void BRepFill_OffsetWire::PrepareSpine()
|
||||
|
||||
#ifdef DRAW
|
||||
if ( AffichEdge) {
|
||||
sprintf(name,"WS");
|
||||
DBRep::Set(name,myWorkSpine);
|
||||
DBRep::Set("WS",myWorkSpine);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1825,6 +1816,7 @@ void MakeCircle (const TopoDS_Edge& E,
|
||||
|
||||
#ifdef DRAW
|
||||
if ( AffichGeom && !OE.IsNull()) {
|
||||
char name[256];
|
||||
sprintf(name,"OFFSET_%d",++NbOFFSET);
|
||||
DBRep::Set(name,OE);
|
||||
}
|
||||
@@ -1901,6 +1893,7 @@ void MakeOffset (const TopoDS_Edge& E,
|
||||
|
||||
#ifdef DRAW
|
||||
if (AffichGeom && !OE.IsNull()) {
|
||||
char name[256];
|
||||
sprintf(name,"OFFSET_%d",++NbOFFSET);
|
||||
DBRep::Set(name,OE);
|
||||
Standard_Real ii = 0;
|
||||
@@ -2143,6 +2136,7 @@ void TrimEdge (const TopoDS_Edge& E,
|
||||
|
||||
#ifdef DRAW
|
||||
if ( AffichEdge) {
|
||||
char name[256];
|
||||
sprintf(name,"TRIMEDGE_%d",NbTRIMEDGES);
|
||||
DBRep::Set(name,NewEdge);
|
||||
}
|
||||
@@ -2152,6 +2146,7 @@ void TrimEdge (const TopoDS_Edge& E,
|
||||
Handle(Geom_Surface) Surf;
|
||||
Handle(Geom2d_Curve) C;
|
||||
BRep_Tool::CurveOnSurface(NewEdge,C,Surf,L,f,l);
|
||||
char name[256];
|
||||
sprintf(name,"OFFSET2d_%d",NbTRIMEDGES++);
|
||||
Handle(Geom2d_TrimmedCurve) C2d = new Geom2d_TrimmedCurve(C,f,l);
|
||||
Handle(DrawTrSurf_Curve2d) dr =
|
||||
|
Reference in New Issue
Block a user