1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +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

@@ -976,8 +976,6 @@ static Standard_Integer DNaming_AddFillet (Draw_Interpretor& theDI,
TDF_Reference::Set(anObject->Label(), aFun->Label().FindChild(FUNCTION_RESULT_LABEL)); //result is here
Standard_Integer aSurfaceType = 0;
Standard_Real aRadius = atof(theArg[3]);
DNaming::GetReal(aFun,FILLET_RADIUS)->Set(aRadius);
@@ -1373,7 +1371,7 @@ static Standard_Integer DNaming_SphereRadius (Draw_Interpretor& theDI,
return 0;
}
}
ERR:
cout << "DNaming_SphRadius : Error" << endl;
return 1;
}
@@ -1644,7 +1642,6 @@ static Standard_Boolean MakeSelection (const Handle(TDataStd_UAttribute)& Obj,
TDF_Label aResultLabel = aFun->Label().FindChild(FUNCTION_RESULT_LABEL, Standard_True);
TDF_Reference::Set(Obj->Label(), aResultLabel ); //result of the object
aResultLabel.ForgetAllAttributes(Standard_True);
Standard_Boolean aKeepOrientation(Standard_False);
Handle(TNaming_NamedShape) aNS = DNaming::GetObjectValue( ContextObj);
try{
const TopoDS_Shape& aContext = aNS->Get();
@@ -1703,7 +1700,6 @@ static Standard_Boolean MakeXSelection (const Handle(TDataStd_UAttribute)& Obj,
TDF_Reference::Set(Obj->Label(), aResultLabel ); //result of the object
aResultLabel.ForgetAllAttributes(Standard_True);
Standard_Boolean aKeepOrientation(Standard_False);
Handle(TNaming_NamedShape) aNS = DNaming::GetObjectValue( ContextObj);
try{
const TopoDS_Shape& aContext = aNS->Get();
@@ -1867,7 +1863,6 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
if(!aNS.IsNull() && !aNS->IsEmpty()) {
const TopoDS_Shape& aRootShape = aNS->Get();
TopAbs_ShapeEnum aType = aRootShape.ShapeType();
//TopTools_MapOfOrientedShape aMap0;
//MapOfOrientedShapes(aRootShape, aMap0);
TopTools_ListOfShape aList, aFailedList;
@@ -1971,7 +1966,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
return 0;
}
}
ERR:
cout << "DNaming_TestSingle : Error" << endl;
return 1;
}
@@ -2007,7 +2002,6 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
if(!aNS.IsNull() && !aNS->IsEmpty()) {
const TopoDS_Shape& aRootShape = aNS->Get();
TopAbs_ShapeEnum aType = aRootShape.ShapeType();
TopTools_MapOfOrientedShape aMap0;
MapOfOrientedShapes(aRootShape, aMap0);
TopTools_ListOfShape aList, aFailedList;
@@ -2102,7 +2096,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
return 0;
}
}
ERR:
cout << "DNaming_TestMultiple : Error" << endl;
return 1;
}

View File

@@ -142,7 +142,6 @@ void DNaming::ToolsCommands (Draw_Interpretor& theCommands)
if (done) return;
done = Standard_True;
const char* g = "Naming data commands " ;
const char* g2 = "Naming modeling commands" ;
theCommands.Add ("CopyShape",
"CopyShape (Shape1 [Shape2] ...)",