MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #29158 All Revisions ] Back to Issue ]
Summary 0029158: Visualization - suspicious pass-through of case labels in switch statements
Revision 2017-09-29 09:21 by abv
Description GCC 7.1 reports multiple warnings "this statement may fall through [-Wimplicit-fallthrough=]" in situations when code can pass through the case label of switch statement (i.e. code of the preceding case label does not leave the switch using break, return etc.). Some of such warnings highlight suspicious places in the code:

MeshVS_Mesh.cxx:422

If fall-through is intentional, add macro Standard_FALLTHROUGH (introduced in 0029151) before the case label to avoid this warning.
Revision 2017-09-29 09:19 by abv
Description GCC 7.1 reports multiple warnings "this statement may fall through [-Wimplicit-fallthrough=]" in situations when code can pass through the case label of switch statement (i.e. code of the preceding case label does not leave the switch using break, return etc.). Some of such warnings highlight suspicious places in the code:

MeshVS_Mesh.cxx:422

If fall-through is intentional, add macro Standard_FALLTHROUGH (introduced in 0029151) before the case label to avoid this warning.


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker