git: d55d5dd9f7ad - main - style.9: clarify FALLTHROUGH
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Oct 2024 23:49:02 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=d55d5dd9f7adcffa6a1f2a49956d7fd7d549aba1 commit d55d5dd9f7adcffa6a1f2a49956d7fd7d549aba1 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2024-10-22 16:13:55 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2024-10-22 23:48:25 +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 --- 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 80099b67831c..69561e3e1e73 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -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.