Anonymous | Login | 2021-01-20 14:00 MSK | ![]() |
My View | View Issues | Change Log | Roadmap |
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 |