I think will be good idea to have warning (and command line option to turn it on/off) to report missing break in switch statement.
Sure syntax is valid, but I think missed breaks are occurring more often then intentionally skipped ones. Same goes for C++ and other languages where similar problem could exist. -- Summary: Warning for missing break in switch statement Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: eugene dot zelenko at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43250