From: "cron2 (Code Review)" Date: Wed, 5 Mar 2025 06:57:35 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <3b9af10c4efa1b58ae4734829e22250420070362-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="9BII9/RMWAk="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Add more 'intentional fallthrough' comments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --9BII9/RMWAk= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#4) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/864?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos Change subject: Add more 'intentional fallthrough' comments ...................................................................... Add more 'intentional fallthrough' comments To make it easier to exclude them from compiler warnings. Based on the existing comment in init.c Change-Id: I925accd8267f94ecfd9ccea85bae965dc2a10208 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Message-Id: <20250228170232.322186-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30= 990.html Signed-off-by: Gert Doering --- M src/openvpn/list.c M src/openvpn/push.c 2 files changed, 11 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/64/864/4 diff --git a/src/openvpn/list.c b/src/openvpn/list.c index 69f1510..6987def 100644 --- a/src/openvpn/list.c +++ b/src/openvpn/list.c @@ -437,34 +437,44 @@ { case 11: c +=3D ((uint32_t) k[10] << 24); + /* Intentional [[fallthrough]]; */ =20 case 10: c +=3D ((uint32_t) k[9] << 16); + /* Intentional [[fallthrough]]; */ case 9: c +=3D ((uint32_t) k[8] << 8); + /* Intentional [[fallthrough]]; */ /* the first byte of c is reserved for the length */ case 8: b +=3D ((uint32_t) k[7] << 24); + /* Intentional [[fallthrough]]; */ case 7: b +=3D ((uint32_t) k[6] << 16); + /* Intentional [[fallthrough]]; */ case 6: b +=3D ((uint32_t) k[5] << 8); + /* Intentional [[fallthrough]]; */ case 5: b +=3D k[4]; + /* Intentional [[fallthrough]]; */ case 4: a +=3D ((uint32_t) k[3] << 24); + /* Intentional [[fallthrough]]; */ case 3: a +=3D ((uint32_t) k[2] << 16); + /* Intentional [[fallthrough]]; */ case 2: a +=3D ((uint32_t) k[1] << 8); + /* Intentional [[fallthrough]]; */ case 1: a +=3D k[0]; diff --git a/src/openvpn/push.c b/src/openvpn/push.c index a7cd3bf..80f9065 100644 --- a/src/openvpn/push.c +++ b/src/openvpn/push.c @@ -98,6 +98,7 @@ case AR_INTERACT: ssl_purge_auth(false); + /* Intentional [[fallthrough]]; */ case AR_NOINTERACT: /* SOFT-SIGTUSR1 -- Auth failure error */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/864?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I925accd8267f94ecfd9ccea85bae965dc2a10208 Gerrit-Change-Number: 864 Gerrit-PatchSet: 4 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --9BII9/RMWAk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #4 to the change originally cr= eated by flichtenheld.

View Change

The following approvals got outda= ted and were removed: Code-Review+2 by plaisthos

Add more 'intentional fallthrough' comme=
nts

To make it easier to exclude them from compiler
warnings.
=
Based on the existing comment in init.c

Change-Id: I925accd8267f= 94ecfd9ccea85bae965dc2a10208
Signed-off-by: Frank Lichtenheld <frank@= ...2641...>
Acked-by: Arne Schwabe <arne-openvpn@...1227...>Message-Id: <20250228170232.322186-1-frank@...2641...>
URL: https= ://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30990.htmlSigned-off-by: Gert Doering <gert@...1296...>
---
M src/openv= pn/list.c
M src/openvpn/push.c
2 files changed, 11 insertions(+), 0 d= eletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/=
changes/64/864/4
diff --git a/src/openvpn/list.c b/src/openvpn/list=
.c
index 69f1510..6987def 100644
--- a/src/= openvpn/list.c
+++ b/src/openvpn/list.c
@@ = -437,34 +437,44 @@
{
case 11:=
c +=3D ((uint32_t) k[10] << 24);=
+ /* Intentional [[f= allthrough]]; */

case 10:=
c +=3D ((uint32_t) k[9] << 16);
+ /* Intentional [[fallthrou= gh]]; */

case 9:
c +=3D ((uint32_t) k[8] << 8);
+ /* Intentional [[fallthrough]]; */

/* the first byte of c is reserve= d for the length */
case 8:
= b +=3D ((uint32_t) k[7] << 24);
+ /* Intentional [[fallthrough]]; */<= br>
case 7:
b = +=3D ((uint32_t) k[6] << 16);
+ /* Intentional [[fallthrough]]; */
=
case 6:
b +=3D ((ui= nt32_t) k[5] << 8);
+ /* Intentional [[fallthrough]]; */
case 5:
b +=3D k[4];+ /* Intentional [[fal= lthrough]]; */

case 4: a +=3D ((uint32_t) k[3] << 24);
+ /* Intentional [[fallthrough]= ]; */

case 3:
= a +=3D ((uint32_t) k[2] << 16);
+ /* Intentional [[fallthrough]]; */

case 2:
= a +=3D ((uint32_t) k[1] << 8);
+ /* Intentional [[fallthrough]]; */

case 1:
a +=3D k= [0];
diff --git a/src/openvpn/push.c b/src/openvpn/push.c
index a7cd3bf..80f9065 100644
--- a/src/open= vpn/push.c
+++ b/src/openvpn/push.c
@@ -98,= 6 +98,7 @@

case AR_INTERACT:=
ssl_purge_auth(false);
+ /* Intentional [[fallthrou= gh]]; */

case AR_NOINTERACT:=
/* SOFT-SIGTUSR1 -- Auth failure error */=

To view, visit change 864. To unsubscribe, = or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I925accd8267f94ecfd9ccea85ba= e965dc2a10208
Gerrit-Change-Number: 864
Gerrit-PatchSet: 4
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--9BII9/RMWAk=--