From nobody Tue Oct 22 23:49:02 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XY85q0Rzmz5ZY3K; Tue, 22 Oct 2024 23:49:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XY85p66Sqz4Wq1; Tue, 22 Oct 2024 23:49:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729640942; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U2nekiBC5YTGXrgH7m1+2KObiIzPVg97a059oHdNB/M=; b=Ec7c3rdDRGkrJ7SUUoDqffizzBb4cgcc3i0FJqo21+4hTcxAB+bTP21dOGgrA9trf3VFqf KGbUwMPAABTMxMfQyVqEyxEGnn8jA5c6/OWRw1IL0T8zMwKpGCzVA3mUyaKsr6bAh/CspI ECBnYkWiJa7X2Rimbrvo8KTwoPViG5V5bjUOx9P4nM/2fWKa+nqZLL6X3CDYuTNToas9BH hFRtMqeJAta/QohVS+DDpnvE4hlPCUR/EmyxePBWYt5OxZicrKTjHwpMKjCWbVUI9z5z2W 9pA7lDqbNHZwJY7tfo0v6IflnyRv9Sn/irc4C5X4sOJPXACjy1I6ivD3xeLTww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729640942; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U2nekiBC5YTGXrgH7m1+2KObiIzPVg97a059oHdNB/M=; b=Wn9JzJug327bTAyukd17AHoiWgx2OKkObVsTSjMu7hE5xeKjovFDu6Eh6QFQQO9ex4MIu7 fF7yo6yMv6nM9sLTwUqtEcvVsauCVPOPm1iXY6RMy8lsF0bRzh9B6ASS4nPDFUkKHYee0U ctXZj5Ll66F+rdRyZN+aFpydkUNVZ4ZUPOsRZRmf1Lq+p/9KRHTSEiuJIyZFP37XkEU9jg unjlO6k8RrXd2ZsBfeuKnztR5EHUoMfMf2Y/4DGseRmzTu+FAAskMGoMX/qn96Iefn7o45 ObEcbKz95ItCxY7TZJxadDNwjysrY7Lr/m070I7fsZQh1IeQ6JmRTks9a8iCqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729640942; a=rsa-sha256; cv=none; b=YIJ6ffq3Fdw/JPLiLsbhD1D9aau5pRaX1nH0Nh5aL+tyPKmWIMFTDy4BkzYaMb53c/S5F9 6ZNZk0X3Y4T+IAunSLG4awcnt37dkktM9IpgPFezZDRXtNGZqJOU6J4VM69NXY8wiDHt2J ilaVJsAeQ7UezyU4ET0nnljQwaxR5tPlRsvo4V1DpcHFLxKFK72s6HV/MpbRKTUT46Lo3V TF8dgLPIkFaMT5McJmQpAWkiJR33FmK76MW/VNa7SbBgKSrZSF8CXp0dCXCfvdiwGbqCBI U2E8kM5jlXL35C8BwaveitvZTqwcYZmP3EC9Nq2rXhsPtRbRSoqIsYAWO65kbA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XY85p3z2jzbFM; Tue, 22 Oct 2024 23:49:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49MNn2gN084950; Tue, 22 Oct 2024 23:49:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49MNn2iw084947; Tue, 22 Oct 2024 23:49:02 GMT (envelope-from git) Date: Tue, 22 Oct 2024 23:49:02 GMT Message-Id: <202410222349.49MNn2iw084947@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: d55d5dd9f7ad - main - style.9: clarify FALLTHROUGH List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d55d5dd9f7adcffa6a1f2a49956d7fd7d549aba1 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=d55d5dd9f7adcffa6a1f2a49956d7fd7d549aba1 commit d55d5dd9f7adcffa6a1f2a49956d7fd7d549aba1 Author: Ed Maste AuthorDate: 2024-10-22 16:13:55 +0000 Commit: Ed Maste 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.