1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

0022922: Clean up warnings on uninitialized / unused variables

This commit is contained in:
dbv@opencascade.com
2012-03-07 17:00:48 +04:00
committed by bugmaster
parent 25289ec1e1
commit 6e6cd5d949
226 changed files with 151 additions and 1471 deletions

View File

@@ -194,14 +194,7 @@ Standard_Integer TOPOC(Draw_Interpretor& interpretor,Standard_Integer na,const c
DBRep::Set(namie.ToCString(),es);
if (eca) {
TCollection_AsciiString s;
#ifdef DEB
Standard_Integer i1 =
#endif
BDS.Shape(F1);
#ifdef DEB
Standard_Integer i2 =
#endif
BDS.Shape(F2);
if (outdraw) {
if (outclear) s = s + "clear; ";
::CATSHA(s,F1,BDS,"tsee f ","; ");

View File

@@ -256,10 +256,6 @@ Standard_Integer reguso(Draw_Interpretor& di, Standard_Integer n, const char** a
TopOpeBRepBuild_ShellToSolid SheToSo;
for (; itm.More(); itm.Next()) {
const TopTools_ListOfShape& lns = itm.Value();
#ifdef DEB
Standard_Integer nlns =
#endif
lns.Extent();
TopTools_ListIteratorOfListOfShape itsh(lns);
for (; itsh.More(); itsh.Next()) {
const TopoDS_Shell& she = TopoDS::Shell(itsh.Value());
@@ -602,9 +598,6 @@ static Standard_Integer classifBnd2d(Draw_Interpretor& di, Standard_Integer n, c
TopoDS_Shape W1 = DBRep::Get(a[1]);
TopoDS_Shape W2 = DBRep::Get(a[2]);
TopoDS_Shape F = DBRep::Get(a[3]);
#ifdef DEB
Standard_Integer i = atoi(a[4]);
#endif
TopoDS_Wire w1 = TopoDS::Wire(W1);
TopoDS_Wire w2 = TopoDS::Wire(W2);

View File

@@ -103,14 +103,7 @@ Standard_Integer DSACCESSCOMMANDS(Draw_Interpretor& interpretor,Standard_Integer
for(i = 1;i<=nbsh;i++) {
TopTools_ListOfShape& los = DS.ChangeShapeSameDomain(i);
j = los.Extent();
#ifdef DEB
Standard_Integer iref =
#endif
DS.SameDomainRef(i);
#ifdef DEB
Standard_Integer iind =
#endif
DS.SameDomainInd(i);
TopTools_ListIteratorOfListOfShape li(los);
for(; li.More(); li.Next()) {
#ifdef DEB

View File

@@ -364,10 +364,6 @@ static Standard_Integer SeeSectionEdge(const Standard_Integer ISE)
if ( ISE < 1 || ISE > nse ) return 0;
const TopoDS_Shape& SE = PHDSD->CurrentBDS().SectionEdge(ISE);
if (SE.IsNull()) return 0;
#ifdef DEB
Standard_Integer ids =
#endif
PHDSD->CurrentBDS().Shape(SE,SFindKeep);
TCollection_AsciiString namedbrep; PHDSD->SectionEdgeName(ISE,SE,namedbrep);
TCollection_AsciiString namedisp; PHDSD->SectionEdgeDisplayName(ISE,SE,namedisp);
@@ -534,9 +530,6 @@ static Standard_Integer SeeGeometry(const TopOpeBRepDS_Kind TK)
const TopOpeBRepDS_DataStructure& BDS = PHDSD->CurrentBDS();
#ifdef DEB
Standard_Integer ig,ng = 0;
#endif
if (TK == TopOpeBRepDS_POINT) {
TopOpeBRepDS_PointExplorer pex(BDS,GFindKeep);
for (; pex.More(); pex.Next()) {
@@ -1133,10 +1126,7 @@ Standard_Integer tds(Draw_Interpretor& di,Standard_Integer na,const char** a)
if (PHDSD == NULL) return 0;
const Handle(TopOpeBRepDS_HDataStructure)& HDS = PHDSD->CurrentHDS();
if (HDS.IsNull()) {COUTNOHDS(di);return 0;}
#ifdef DEB
const TopOpeBRepDS_DataStructure& BDS =
#endif
PHDSD->CurrentBDS();
PHDSD->CurrentBDS();
TopOpeBRepDS_Dumper Dumper(HDS);
if ( na == 1 ) { Dumper.Dump(cout,TDSkeep,TDScompact); return 0; }