Demo 2¶
- -Wimplicit-fallthrough¶
-Wimplicit-fallthrough
is the same as-Wimplicit-fallthrough=3
and-Wno-implicit-fallthrough
is the same as-Wimplicit-fallthrough=0
.
- -Wno-implicit-fallthrough¶
Default setting; overrides
-Wimplicit-fallthrough
.
- -Wimplicit-fallthrough=n¶
Warn when a switch case falls through. For example: …
- -Wimplicit-fallthrough=0¶
Disable it altogether.
- -Wimplicit-fallthrough=1¶
Level 1
- -Wimplicit-fallthrough=2¶
Level 2
- -Wimplicit-fallthrough=3¶
Level 3
…
Try -Wimplicit-fallthrough=
or -Wimplicit-fallthrough
or -Wimplicit-fallthrough=n
.