From: "flichtenheld (Code Review)"
Date: Tue, 14 Jan 2025 13:14:15 +0000
References:
Reply-To: frank@...2641..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net
Message-ID: <458e038e57dbb3c4559aafc21dd76744b158782b-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="XIram5/w0T0="; 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: plaisthos
Cc: openvpn-devel
--XIram5/w0T0=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/864?usp=3Demail
to review the following change.
Change subject: Add more "intentional fallthrough" comments
......................................................................
Add more "intentional fallthrough" comments
To make it easier to exclude them from compiler
warnings.
Change-Id: I925accd8267f94ecfd9ccea85bae965dc2a10208
Signed-off-by: Frank Lichtenheld
---
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/1
diff --git a/src/openvpn/list.c b/src/openvpn/list.c
index 69f1510..b339c7b 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]]; */
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 ddad109..06e421c 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: 1
Gerrit-Owner: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-MessageType: newchange
--XIram5/w0T0=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: plaisthos.
flichtenheld would like plaisthos to review this change.
Vi=
ew Change
Add more "intentional fallthrough" comments
=
To make it easier to exclude them from compiler
warnings.
Change-=
Id: I925accd8267f94ecfd9ccea85bae965dc2a10208
Signed-off-by: Frank Licht=
enheld <frank@...2641...>
---
M src/openvpn/list.c
M src/ope=
nvpn/push.c
2 files changed, 11 insertions(+), 0 deletions(-)
=
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/64/864/1
=
diff --git a/src/openvpn/list.c b/src/openvpn/list.c
ind=
ex 69f1510..b339c7b 100644
--- a/src/openvpn/list.c<=
br>+++ b/src/openvpn/list.c
@@ -437,34 +437,44 @@
{
case 11:
=
c +=3D ((uint32_t) k[10] << 24);
+ /* Intentional [[fallthrough]]; */=
span>
case 10:
=
c +=3D ((uint32_t) k[9] << 16);
+ /* Intentional [[fallthrough]]; */
case 9:
=
c +=3D ((uint32_t) k[8] << 8);
+ /* Intentional [[fallthrough]]; */
<=
span>
/* 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]]; */
<=
/span>
case 6:
b +=3D ((uint=
32_t) k[5] << 8);
+ /* Intentional [[fallthrough]]; */
=
case 5:
b +=3D k[4];=
+ /* Intentional=
[[fallthrough]]; */
case 4:
a +=3D ((uint32_t) k[3] << 24);
<=
span style=3D"color: hsl(120, 100%, 40%);">+ /* Intentional [[fa=
llthrough]]; */
case 3: a +=3D ((uint32_t) k[2] << 16);
+ /* Intentional [[fallthr=
ough]]; */
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/s=
rc/openvpn/push.c
index ddad109..06e421c 100644
<=
span>--- 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 =
change 86=
4. 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: 1
Gerrit-Owner: flichtenheld <frank@...2723...=
.>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-MessageType: newchange
--XIram5/w0T0=--