| Message ID | 20251004141935.17815-1-gert@greenie.muc.de |
|---|---|
| State | New |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:7000:7505:b0:72f:f16c:e055 with SMTP id r5csp5831465mai;
Sat, 4 Oct 2025 07:20:01 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCWH2vCxNAlbpUSeeh7myGFdWU5qA1WD8xmQpJzLWC3StV7T5KW3/35kXaTJEWpxmR4nt+2RzlwjKPo=@openvpn.net
X-Google-Smtp-Source:
AGHT+IFQZrmbs0UJtgTX15/eKVHT0PLycG0E88IRbnsyiU2PiyhW0xm8rGkTACIW6l2+sbPcByeI
X-Received: by 2002:a05:6830:6011:b0:7b9:7d41:1031 with SMTP id
46e09a7af769-7bf77235301mr3621032a34.14.1759587601682;
Sat, 04 Oct 2025 07:20:01 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1759587601; cv=none;
d=google.com; s=arc-20240605;
b=j6L/b90NWFvDJlL/P+8Z+viek+bkFvbuokl3+GCfm5yQyU6kxztTkaCA/lAcwySYld
06mXc/WtkBIN7nNgs6lMhDOXBhV+LbbcCvOTe4saaiVQLWw+hKYViGgU9gjByK2UAMGd
Y4GtN3tBo2qVt4v7lpqI+5SUnQdeMZK/MUe2i7DbpdkLFoBOUvmtRml7tqQQuS0F+N/U
h9g40XzK7PLMUfHWbOoZoSqt8rCTfVvg2TgAr+rrH8b6Px7VPlc7m71aUpq3CKPA5ZXP
RXfUDyrCU+PKsAtQe8J9zAkbiu6Yux55pQOoMycDAOw7WAceU/gJANXzLKUpY8OuECVW
u7ag==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=errors-to:content-transfer-encoding:list-subscribe:list-help
:list-post:list-archive:list-unsubscribe:list-id:precedence:subject
:mime-version:references:in-reply-to:message-id:date:to:from
:dkim-signature:dkim-signature:dkim-signature;
bh=eJW9f5vAMN9E0XwOGXxmSTv3m1wmF+smXgo+5a4WzJo=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=AuHxRAOoJfp70QUUKK423iqhU/AWpYuA8A90zjUHavh8+Rb+rY/Um4zNucdDtZ8FxP
taHAjLGBRC0DsjcauF2SrvmLFCxtS1+Cm6Ez+8JrBAgUKNnnmuwgW9wzKlvoU9vIt5fZ
V2hY9kobTcCm6Vqpo/ov3He4jcLxdo+vE/JrI6uakrN18jMoChuxW1Tl37XSRp13w1tW
qZ/c68KWhMNHSI58TBp4+5KtSOwqpjuIUgQywV6C0F3Jsk2IEqOjRqVnZ7soRH2M2cDE
DXkTdC9aasS03P8lpxhj7zsyouO9YWC2jU8oLHmlAf3ByYkxS49L12LQVLO8RSB+UFZq
eQew==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=Oao0Zuph;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=QtcVIuga;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=ND6WDVBs;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
46e09a7af769-7bf438db99esi2047769a34.500.2025.10.04.07.20.01
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sat, 04 Oct 2025 07:20:01 -0700 (PDT)
Received-SPF: pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) client-ip=216.105.38.7;
Authentication-Results: mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=Oao0Zuph;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=QtcVIuga;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=ND6WDVBs;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:
List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:
Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender:
Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;
bh=eJW9f5vAMN9E0XwOGXxmSTv3m1wmF+smXgo+5a4WzJo=; b=Oao0ZuphObYYh/u7lAmjlCo90G
On7+c+RBzq3oB4llHESW5oxMliemhw3EpU3gYyeQhDxXh6GiAGSt54tM1x4ZXH2WOEmBUgla8LxMJ
vdEz5yjFJamp1hijcAl6yj9Vxh5uhIYaLaeQwLAHpSo08Kipn+wIlaNc66bB6Ijz15Fs=;
Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com)
by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1v5371-0007AB-90;
Sat, 04 Oct 2025 14:19:51 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
(envelope-from <gert@blue4.greenie.muc.de>) id 1v536z-0007A5-LK
for openvpn-devel@lists.sourceforge.net;
Sat, 04 Oct 2025 14:19:49 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References:
In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=lav/ViZZffJVyq7L9E5XVbK3B5Bg2PN36owq0ykDAOI=; b=QtcVIuga84wlvD2OVlxB3JWTDu
iq+yopB2USov9lEin08Kqo0XRIPwDfC/1evMscanB7E9pcMBkC7oVoNLWJefJEqit8C2bVQPbw03L
KbhSzJGq9xLdWY90QbjRaWLe3NtFpOjDOj9WEmcfDueZtiXuGaSwexDXGT6S2VPyWh+Q=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:
Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
List-Post:List-Owner:List-Archive;
bh=lav/ViZZffJVyq7L9E5XVbK3B5Bg2PN36owq0ykDAOI=; b=ND6WDVBsEL4+4juEdxYGc9/zS6
R/J0R2cxLXzLqBEFCGSChOwk+XyqRX9GMD4dwmuTVTGR8KW6vlmg79dH5U3onlBtfabvbTEYHk5Gb
U/+0Fg6Lqvh6NbQ7QeR4tnbhPpKMiDdKWS4Ix1ByLBK2+7LWUAubk9Aw+kczD3gRFsz4=;
Received: from [193.149.48.134] (helo=blue.greenie.muc.de)
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95)
id 1v536y-0002H0-Jg for openvpn-devel@lists.sourceforge.net;
Sat, 04 Oct 2025 14:19:49 +0000
Received: from blue.greenie.muc.de (localhost [127.0.0.1])
by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 594EJaA5017832
for <openvpn-devel@lists.sourceforge.net>; Sat, 4 Oct 2025 16:19:36 +0200
Received: (from gert@localhost)
by blue.greenie.muc.de (8.18.1/8.18.1/Submit) id 594EJaqx017831
for openvpn-devel@lists.sourceforge.net; Sat, 4 Oct 2025 16:19:36 +0200
From: Gert Doering <gert@greenie.muc.de>
To: openvpn-devel@lists.sourceforge.net
Date: Sat, 4 Oct 2025 16:19:30 +0200
Message-ID: <20251004141935.17815-1-gert@greenie.muc.de>
X-Mailer: git-send-email 2.49.1
In-Reply-To:
<gerrit.1758727613000.Ic971604beb1320d7b9d6121cd8e8519ccc1a7eb9@gerrit.openvpn.net>
References:
<gerrit.1758727613000.Ic971604beb1320d7b9d6121cd8e8519ccc1a7eb9@gerrit.openvpn.net>
MIME-Version: 1.0
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software,
running on the system "sfi-spamd-2.hosts.colo.sdot.me",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: From: Frank Lichtenheld <frank@lichtenheld.com> So we could
enable -Werror for OpenBSD builds. Change-Id:
Ic971604beb1320d7b9d6121cd8e8519ccc1a7eb9
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> Acked-by: MaxF
<max@max-fillinger.net>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/ [...]
Content analysis details: (1.3 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Headers-End: 1v536y-0002H0-Jg
Subject: [Openvpn-devel] [PATCH v1] route: Fix a unused-but-set-variable
warning on OpenBSD
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: =?utf-8?q?1845061329039166988?=
X-GMAIL-MSGID: =?utf-8?q?1845061329039166988?=
|
| Series |
[Openvpn-devel,v1] route: Fix a unused-but-set-variable warning on OpenBSD
|
|
Commit Message
Gert Doering
Oct. 4, 2025, 2:19 p.m. UTC
From: Frank Lichtenheld <frank@lichtenheld.com> So we could enable -Werror for OpenBSD builds. Change-Id: Ic971604beb1320d7b9d6121cd8e8519ccc1a7eb9 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> Acked-by: MaxF <max@max-fillinger.net> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1214 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1214 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): MaxF <max@max-fillinger.net>
Comments
This is not my most favourite patch in this series... but the alternative
is "more #ifdefs" (nah) or "more code duplication" (nah). In these system
dependent parts, some compromises need to be made...
Didn't actually *test* anything, as it's very explicit not doing anything :-)
(and BB says "it still compiles and tests fine everywhere").
Your patch has been applied to the master branch.
commit 9243ea88913fc1bed26c25ba7d7b18bb2f16fa4c
Author: Frank Lichtenheld
Date: Sat Oct 4 16:19:30 2025 +0200
route: Fix a unused-but-set-variable warning on OpenBSD
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: MaxF <max@max-fillinger.net>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1214
Message-Id: <20251004141935.17815-1-gert@greenie.muc.de>
URL: https://sourceforge.net/p/openvpn/mailman/message/59242246/
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
On Sat, Oct 04, 2025 at 06:05:47PM +0200, Gert Doering wrote: > This is not my most favourite patch in this series... but the alternative > is "more #ifdefs" (nah) or "more code duplication" (nah). In these system > dependent parts, some compromises need to be made... > > Didn't actually *test* anything, as it's very explicit not doing anything :-) > (and BB says "it still compiles and tests fine everywhere"). > > Your patch has been applied to the master branch. Can you please also apply this to release/2.6? It applies cleanly and otherwise buildbot is unhappy on obsd75. We currently have no easy way to make --enable-werror conditional on the branch. Thanks, Frank > > commit 9243ea88913fc1bed26c25ba7d7b18bb2f16fa4c > Author: Frank Lichtenheld > Date: Sat Oct 4 16:19:30 2025 +0200 > > route: Fix a unused-but-set-variable warning on OpenBSD > > Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> > Acked-by: MaxF <max@max-fillinger.net> > Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1214 > Message-Id: <20251004141935.17815-1-gert@greenie.muc.de> > URL: https://sourceforge.net/p/openvpn/mailman/message/59242246/ > Signed-off-by: Gert Doering <gert@greenie.muc.de>
Hi, On Fri, Oct 17, 2025 at 11:06:35AM +0200, Frank Lichtenheld wrote: > On Sat, Oct 04, 2025 at 06:05:47PM +0200, Gert Doering wrote: > > This is not my most favourite patch in this series... but the alternative > > is "more #ifdefs" (nah) or "more code duplication" (nah). In these system > > dependent parts, some compromises need to be made... > > > > Didn't actually *test* anything, as it's very explicit not doing anything :-) > > (and BB says "it still compiles and tests fine everywhere"). > > > > Your patch has been applied to the master branch. > > Can you please also apply this to release/2.6? It applies cleanly and otherwise > buildbot is unhappy on obsd75. We currently have no easy way to make > --enable-werror conditional on the branch. Makes sense. So here we go: commit dca6b03098ab0f3ef808c891673305651dc6704a (HEAD -> release/2.6) Author: Frank Lichtenheld <frank@lichtenheld.com> Date: Sat Oct 4 16:19:30 2025 +0200 route: Fix a unused-but-set-variable warning on OpenBSD So we could enable -Werror for OpenBSD builds. Change-Id: Ic971604beb1320d7b9d6121cd8e8519ccc1a7eb9 "stared at diff", compile tested on OpenBSD 7.6 gert
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 = r6->iface; gateway_needed = 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