From: "flichtenheld (Code Review)" Date: Wed, 24 Sep 2025 15:26:55 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="zPBKj9T2P7Y="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: route: Fix a unused-but-set-variable warning on OpenBSD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --zPBKj9T2P7Y= 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/+/1214?usp=3Demail to review the following change. Change subject: route: Fix a unused-but-set-variable warning on OpenBSD ...................................................................... route: Fix a unused-but-set-variable warning on OpenBSD So we could enable -Werror for OpenBSD builds. Change-Id: Ic971604beb1320d7b9d6121cd8e8519ccc1a7eb9 Signed-off-by: Frank Lichtenheld --- M src/openvpn/route.c 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/14/1214/1 diff --git a/src/openvpn/route.c b/src/openvpn/route.c index 156a99e..05a0c8f 100644 --- a/src/openvpn/route.c +++ b/src/openvpn/route.c @@ -2221,6 +2221,7 @@ device =3D r6->iface; gateway_needed =3D true; } + (void)device; /* unused on some platforms */ /* if we used a gateway on "add route", we also need to specify it on * delete, otherwise some OSes will refuse to delete the route -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1214?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: Ic971604beb1320d7b9d6121cd8e8519ccc1a7eb9 Gerrit-Change-Number: 1214 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newchange --zPBKj9T2P7Y= 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.

V= iew Change

route: Fix a unused-but-set-variable warning on OpenBSD
<= br>So we could enable -Werror for OpenBSD builds.

Change-Id: Ic97160= 4beb1320d7b9d6121cd8e8519ccc1a7eb9
Signed-off-by: Frank Lichtenheld <= frank@...2641...>
---
M src/openvpn/route.c
1 file changed, 1 i= nsertion(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:294=
18/openvpn refs/changes/14/1214/1
diff --git a/src/openvpn/route.c =
b/src/openvpn/route.c
index 156a99e..05a0c8f 100644<= br>--- a/src/openvpn/route.c
+++ b/src/openvpn/route.= c
@@ -2221,6 +2221,7 @@
device =3D= r6->iface;
gateway_needed =3D true;
= }
+ (vo= id)device; /* unused on some platforms */

/* if we used a gateway on "add route", we also need to spe= cify it on
* delete, otherwise some OSes will refuse = to delete the route

To view, visit change 1214<= /a>. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic971604beb1320d7b9d6121cd8e= 8519ccc1a7eb9
Gerrit-Change-Number: 1214
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
--zPBKj9T2P7Y=--