mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0029151: GCC 7.1 warnings "this statement may fall through" [-Wimplicit-fallthrough=]
New macro Standard_FALLTHROUGH is defined for use in a switch statement immediately before a case label, if code associated with the previous case label may fall through to that next label (i.e. does not end with "break" or "return" etc.). This macro indicates that the fall through is intentional and should not be diagnosed by a compiler that warns on fallthrough. The macro is inserted in places that currently generate such warning message and where fallthrough is intentional. Doxygen comments are provided for this and other macros in Standard_Macro.hxx.
This commit is contained in:
@@ -1019,14 +1019,15 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferOffsetSurface
|
||||
}
|
||||
case TopAbs_SHELL :
|
||||
{
|
||||
SendWarning(st, "The First Surface only will be transfered.");
|
||||
TopoDS_Iterator dabovil(igesShape);
|
||||
if (dabovil.More()) {
|
||||
face = TopoDS::Face(dabovil.Value());
|
||||
break;
|
||||
SendWarning(st, "The First Surface only will be transfered.");
|
||||
face = TopoDS::Face(dabovil.Value());
|
||||
break;
|
||||
}
|
||||
/* else AddF("... */
|
||||
}
|
||||
Standard_FALLTHROUGH
|
||||
default:
|
||||
{
|
||||
Message_Msg msg1156("IGES_1156");
|
||||
|
Reference in New Issue
Block a user