mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0022922: Clean up warnings on uninitialized / unused variables
This commit is contained in:
committed by
bugmaster
parent
25289ec1e1
commit
6e6cd5d949
@@ -671,12 +671,6 @@ Handle(AIS_InteractiveObject) DetectedFromContext(
|
||||
Handle(AIS_InteractiveObject) aisPickedShape =
|
||||
Handle(AIS_InteractiveObject)::DownCast(aContext->DetectedInteractive());
|
||||
ret = aisPickedShape;
|
||||
#ifdef DEB
|
||||
const char *name =
|
||||
#endif
|
||||
( GetMapOfAIS().IsBound1(aisPickedShape) )?
|
||||
GetMapOfAIS().Find1(aisPickedShape).ToCString() :
|
||||
(char *) "????";
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
@@ -3184,7 +3178,6 @@ static int VSetTransMode ( Draw_Interpretor& di, Standard_Integer argc, const ch
|
||||
}
|
||||
|
||||
Standard_Boolean IsBound = GetMapOfAIS().IsBound2(shapeName);
|
||||
Standard_Boolean IsDatum = Standard_False;
|
||||
Handle(Standard_Transient) anObj;
|
||||
if ( IsBound ) {
|
||||
anObj = GetMapOfAIS().Find2(shapeName);
|
||||
@@ -3241,7 +3234,7 @@ Standard_Integer hlrtest(Draw_Interpretor&, Standard_Integer n, const char**
|
||||
/////////////////////
|
||||
TopoDS_Shape aShape = DBRep::Get(a[1]);
|
||||
aContext2D->EraseAll(Standard_True);
|
||||
Standard_Integer aPolyAlgo = 0;
|
||||
//Standard_Integer aPolyAlgo = 0;
|
||||
Standard_Boolean IsPoly = Standard_False;
|
||||
gp_Ax2 anAx2 = gp::XOY();
|
||||
|
||||
@@ -3301,7 +3294,7 @@ Standard_Integer phlrtest(Draw_Interpretor&, Standard_Integer n, const char*
|
||||
/////////////////////
|
||||
TopoDS_Shape aShape = DBRep::Get(a[1]);
|
||||
aContext2D->EraseAll(Standard_True);
|
||||
Standard_Integer aPolyAlgo = 0;
|
||||
//Standard_Integer aPolyAlgo = 0;
|
||||
Standard_Boolean IsPoly = Standard_True;
|
||||
gp_Ax2 anAx2 = gp::XOY();
|
||||
|
||||
|
@@ -105,9 +105,6 @@ static Standard_Integer VBLEND(Draw_Interpretor& di, Standard_Integer narg, cons
|
||||
if (narg<5) return 1;
|
||||
|
||||
Standard_Integer NbToPick = (narg -4)/2;
|
||||
#ifdef DEB
|
||||
Standard_Boolean autonaming = !strcasecmp(a[3],".");
|
||||
#endif
|
||||
Handle(TopTools_HArray1OfShape) arr = new TopTools_HArray1OfShape(1,NbToPick);
|
||||
if(ViewerTest::PickShapes(TopAbs_EDGE,arr)){
|
||||
for(Standard_Integer i=1;i<=NbToPick;i++){
|
||||
|
Reference in New Issue
Block a user