mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-25 07:49:18 +00: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
This commit is contained in:
parent
13da1af1cd
commit
d55d5dd9f7
@ -520,7 +520,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 New Issue
Block a user