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:
Ed Maste 2024-10-22 12:13:55 -04:00
parent 3981cf1087
commit dd72aa6be4

View file

@ -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.