Improvements #10953
Explicitly mark fallthrough in switch statements
Start date:
09/19/2022
Due date:
% Done:
100%
Estimated time:
Description
Wt should not report implicit fallthrough warnings (-Wimplicit-fallthrough). We should mark every deliberate fallthrough explicitly.
For C++17 this can be done with [[fallthrough]]
. For C++14 and GCC compatible compilers (like Clang) we can
use __attribute__((fallthrough))
.
Related issues
Updated by Roel Standaert 5 months ago
- Related to Improvements #10954: Investigate suspicious fallthrough added
Updated by Roel Standaert 3 days ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Matthias Van Ceulebroeck to Roel Standaert
- % Done changed from 0 to 100