git: dd72aa6be4ee - stable/14 - style.9: clarify FALLTHROUGH
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Oct 2024 20:36:29 UTC
The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=dd72aa6be4eec5d6d6406b00190e5729bba179db commit dd72aa6be4eec5d6d6406b00190e5729bba179db Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2024-10-22 16:13:55 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2024-10-29 20:33:10 +0000 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 f00286ba9c48..52292b896add 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.