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)
committerabv <abv@opencascade.com>
Wed, 4 Oct 2017 12:28:02 +0000 (15:28 +0300)
commitb1811c1d2b78aab36e2e75d0a2191cc768e9c232
tree50de52464df9b8cf41ce5b38f22a2ff44566e1b5
parente2b4dea25313d08318e94d6cbc329d18486d801c
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