mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0024284: Some trivial warnings produced by ICC 14
Eliminated ICC 14 warnings: # 82: storage class is not first (e.g. "int static f()" # 2621: attribute "dllexport" does not apply here (e.g. "Standard_EXPORT typedef int qqint;") # 2415: variable "..." of static storage duration was declared but never referenced # 111: statement is unreachable (usually "break" after "return" in cycles)
This commit is contained in:
@@ -144,7 +144,7 @@ static void MapShapes(const TDF_Label& LCible, const TDF_Label& LSource, TopTool
|
||||
//purpose : TNaming
|
||||
//=======================================================================
|
||||
|
||||
void static SubstituteShape(const TopoDS_Shape& oldShape,
|
||||
static void SubstituteShape(const TopoDS_Shape& oldShape,
|
||||
const TopoDS_Shape& newShape,
|
||||
TNaming_DataMapOfShapePtrRefShape& amap)
|
||||
{
|
||||
|
@@ -281,11 +281,9 @@ Standard_Boolean TNaming_Localizer::IsNew (const TopoDS_Shape& S,
|
||||
for (; itLab.More(); itLab.Next()) {
|
||||
if (itLab.OldShape().IsSame(S)) {
|
||||
return Standard_False;
|
||||
break;
|
||||
}
|
||||
if (itLab.NewShape().IsSame(S)) {
|
||||
return Standard_True;
|
||||
break;
|
||||
}
|
||||
}
|
||||
#ifdef DEB
|
||||
|
Reference in New Issue
Block a user