Project

General

Profile

Improvements #10953

Explicitly mark fallthrough in switch statements

Added by Roel Standaert 2 months ago. Updated about 2 months ago.

Status:
Review
Priority:
Normal
Assignee:
Target version:
Start date:
09/19/2022
Due date:
% Done:

0%

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

Related to Improvements #10954: Investigate suspicious fallthroughNew09/19/2022

Actions

Also available in: Atom PDF