mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
style.9: clarify FALLTHROUGH
FALLTHROUGH is intended for a block of code that cascades to the next case block. Multiple case statements sharing a single block of code do not need a FALLTHROUGH comment. Reviewed by: imp, markj, jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47242 (cherry picked from commit d55d5dd9f7adcffa6a1f2a49956d7fd7d549aba1)
This commit is contained in:
parent
3981cf1087
commit
dd72aa6be4
1 changed files with 1 additions and 1 deletions
|
|
@ -530,7 +530,7 @@ parts of the
|
|||
cascade.
|
||||
Elements in a
|
||||
.Ic switch
|
||||
statement that cascade should have a
|
||||
statement that execute some code and then cascade to the next case should have a
|
||||
.Li FALLTHROUGH
|
||||
comment.
|
||||
Numerical arguments should be checked for accuracy.
|
||||
|
|
|
|||
Loading…
Reference in a new issue