]> OCCT Git - occt-copy.git/commit
0029151: GCC 7.1 warnings "this statement may fall through" [-Wimplicit-fallthrough=]
authorabv <abv@opencascade.com>
Thu, 28 Sep 2017 07:26:47 +0000 (10:26 +0300)
committerkgv <kgv@opencascade.com>
Mon, 4 Dec 2017 18:15:47 +0000 (21:15 +0300)
commit69c8261af7c18025ba14d69871d7c0984b9341f0
tree51f9f5003e8494d88414ee96efcceb8522bc17d9
parent897b9dc4f976ac6ea635f2e69a7cc8cf87ffe982
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.
34 files changed:
src/APIHeaderSection/APIHeaderSection_EditHeader.cxx
src/Approx/Approx_CurvlinFunc.cxx
src/BRepLib/BRepLib_FindSurface.cxx
src/BRepTest/BRepTest_CheckCommands.cxx
src/BndLib/BndLib.cxx
src/BndLib/BndLib_AddSurface.cxx
src/Extrema/Extrema_ExtCS.cxx
src/GeomLib/GeomLib.cxx
src/GeometryTest/GeometryTest_ContinuityCommands.cxx
src/IFSelect/IFSelect_SessionPilot.cxx
src/IGESConvGeom/IGESConvGeom.cxx
src/IGESDraw/IGESDraw_GeneralModule.cxx
src/IGESDraw/IGESDraw_ToolDrawing.cxx
src/IGESToBRep/IGESToBRep_TopoSurface.cxx
src/IntPatch/IntPatch_ALineToWLine.cxx
src/IntPatch/IntPatch_ImpPrmIntersection.cxx
src/IntPatch/IntPatch_Intersection.cxx
src/IntTools/IntTools_EdgeEdge.cxx
src/Intrv/Intrv_Intervals.cxx
src/LDOM/LDOMBasicString.cxx
src/LDOM/LDOMParser.cxx
src/LDOM/LDOMString.cxx
src/LDOM/LDOM_XmlReader.cxx
src/Message/Message_MsgFile.cxx
src/NCollection/NCollection_UtfIterator.lxx
src/OpenGl/OpenGl_AspectMarker.cxx
src/ProjLib/ProjLib_ProjectOnPlane.cxx
src/STEPControl/STEPControl_ActorWrite.cxx
src/SelectMgr/SelectMgr_SelectionManager.cxx
src/Standard/Standard_Macro.hxx
src/TDataXtd/TDataXtd_Geometry.cxx
src/TNaming/TNaming_Name.cxx
src/UnitsAPI/UnitsAPI.cxx
src/ViewerTest/ViewerTest_AutoUpdater.cxx