mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024180: Eliminate CLang / GCC compiler warning -Wswitch
Eliminated warnings -Wswitch shown by gcc Eliminated two new warnings about wrong initialization order Eliminated warnings about unused functions. A few more ICC warnings (type conversions) fixed
This commit is contained in:
@@ -320,6 +320,7 @@ static void CollectShapes(const TopoDS_Shape& SSh, TopoDS_Compound& C,
|
||||
}
|
||||
break;
|
||||
case TopAbs_VERTEX:
|
||||
{
|
||||
const Handle(TNaming_NamedShape) aNS = TNaming_Tool::NamedShape(SSh, theLab);
|
||||
if(!aNS.IsNull())
|
||||
if(SMap.Add(SSh)) {
|
||||
@@ -327,8 +328,11 @@ static void CollectShapes(const TopoDS_Shape& SSh, TopoDS_Compound& C,
|
||||
// if(isPrimitive)
|
||||
// TagMap.Bind(SSh, aNS->Label().Tag());
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user