From dd72aa6be4eec5d6d6406b00190e5729bba179db Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 22 Oct 2024 12:13:55 -0400 Subject: [PATCH] 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) --- share/man/man9/style.9 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index f00286ba9c4..52292b896ad 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -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.