| Message ID | 20230203191440.136050-2-frank@lichtenheld.com |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:7300:c95:b0:82:e4b3:40a0 with SMTP id p21csp1375690dyk;
Fri, 3 Feb 2023 11:15:21 -0800 (PST)
X-Google-Smtp-Source:
AK7set8rt7sePDufMq8Q3Ma6Ds0kR7kmHWKVgfACO1svn5eXdkt2CvVmbVtkblwkkL59GsuveEyf
X-Received: by 2002:a05:6a20:1603:b0:bc:2665:cbe6 with SMTP id
l3-20020a056a20160300b000bc2665cbe6mr14339609pzj.5.1675451721346;
Fri, 03 Feb 2023 11:15:21 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1675451721; cv=none;
d=google.com; s=arc-20160816;
b=Rgi/wWPhUAqoyq+E7OmXED37Scp2Kf79DmdmObGgZc6Nrs2AocoMuABIMPa+Mlc8HE
6TJnlIDPM01HN2oMQwaDAPYv7gotwXe4LK86pD7cKNcC4mLcQj4r5gUDyH7exckiDyQq
ci6xaO3prMUBluE/suu4o684bThCpoKENvvipbN0mJXvsEIq6r5xDgCEQnXZtGwpERdx
Eks9j1MHwJrgwBQ9VdA+R4wWTqpWDSpFmVBqj9f6eaFD2gW4AWWC3SNv3ZKo3+lfbXYs
nNsiUsygACu8ZlM8EQaYg5KVhZu1JDFltd4xf+SF0olA+8jSHtHP4PSV6XEgplzCMZjE
u+cQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
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;
bh=r1ra1mcMTHzH48aT4b3aXgsCo/KQwNk/BH7y3CfTh+U=;
b=eXn1md3+W0s/rRXE5jW3IFtl1R6o/YefqcWLLhAZDxK5NNCQ4Y0tb4kYbkCwUgJR7+
RM8so6gVYRJY3CPwdf6y5F76zm25XqeLZ4182h4V0nV0xOnrg1ccq6knuXA9t9LRF1xU
dK/BPGgyCeaX9FZF80j3uP1EBxMg+H/0D+tBSylfEpqHd//CWIq4ZSn18j1xc12IqrTe
XAplOrLhWYglHaZe0Ez5/uMJHgWBZc81hfQX7LFow2AhNyXPsdalLx6YHFRDjSSvG8tg
pjlZJGndppRTaa8Go/Jvg4FC8zF2TF2JYrUjRmvpu/GbToYOMsK5Bbyeeajd1nWzyFtd
Pzww==
ARC-Authentication-Results: i=1; mx.google.com;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=N5x5bCsT;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=fKL82b2s;
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
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
d19-20020a637353000000b004f23305262bsi3610876pgn.14.2023.02.03.11.15.20
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Fri, 03 Feb 2023 11:15:21 -0800 (PST)
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=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=N5x5bCsT;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=fKL82b2s;
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
Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com)
by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1pO1WT-0005QX-6N;
Fri, 03 Feb 2023 19:14:56 +0000
Received: from [172.30.20.202] (helo=mx.sourceforge.net)
by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
(envelope-from <frank@lichtenheld.com>) id 1pO1WS-0005QR-3O
for openvpn-devel@lists.sourceforge.net;
Fri, 03 Feb 2023 19:14:55 +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=NmQPHVIJBY5xpLPUhShwQJooj52AL5qwTljbBDoZs8c=; b=N5x5bCsTljufZ7gGC3LGogMOkp
Xx95oN5ZizE9vwmZqnVCS6WPUiG70PL6pXvrnkXwnbgfJbvy7IomX1UUrnv7Q+0Gpy3Bm95lyHUTR
r5ydRP8WZQtdfvXCz8cteA6lpJz+5gJMvfhQ4LBOySbV5tglfIDdYIa+4mHBs02JIo+M=;
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=NmQPHVIJBY5xpLPUhShwQJooj52AL5qwTljbBDoZs8c=; b=fKL82b2sKVsXzz0z97Cr9lqASv
WgFL2QWIb8t4zg758UTNFrgbhG01sACKExNykYNXUJ/O7VTyDA3ExsqSnpjh8e8ZA/c74/++vJaU2
FZpDhNHodaUqbI9HFtFGhaK1FNc7kqAvcNyq5s9bo7hdVarOg/l635kPkJUWh77rlJp8=;
Received: from mout-p-102.mailbox.org ([80.241.56.152])
by sfi-mx-2.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95)
id 1pO1WP-000159-9R for openvpn-devel@lists.sourceforge.net;
Fri, 03 Feb 2023 19:14:55 +0000
Received: from smtp1.mailbox.org (smtp1.mailbox.org
[IPv6:2001:67c:2050:b231:465::1])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest
SHA256) (No client certificate requested)
by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4P7lhf1qQMz9stP
for <openvpn-devel@lists.sourceforge.net>;
Fri, 3 Feb 2023 20:14:42 +0100 (CET)
From: Frank Lichtenheld <frank@lichtenheld.com>
To: openvpn-devel@lists.sourceforge.net
Date: Fri, 3 Feb 2023 20:14:36 +0100
Message-Id: <20230203191440.136050-2-frank@lichtenheld.com>
In-Reply-To: <20230203191440.136050-1-frank@lichtenheld.com>
References: <20230203191440.136050-1-frank@lichtenheld.com>
MIME-Version: 1.0
X-Rspamd-Queue-Id: 4P7lhf1qQMz9stP
X-Spam-Score: -0.7 (/)
X-Spam-Report: Spam detection software,
running on the system "util-spamd-1.v13.lw.sourceforge.com",
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: Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> ---
src/openvpn/options.c | 2 ++ 1 file changed,
2 insertions(+) diff --git a/src/openvpn/options.c
b/src/openvpn/options.c index 6ae3faf8..ab1b01cf 100644 ---
a/src/openvpn/options.c
+++ b/src/openvpn/options.c @@ -1041,6 +1041,7 @@ setenv_settings(struct
env_set [...]
Content analysis details: (-0.7 points, 6.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/,
low trust [80.241.56.152 listed in list.dnswl.org]
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
0.0 SPF_NONE SPF: sender does not publish an SPF Record
X-Headers-End: 1pO1WP-000159-9R
Subject: [Openvpn-devel] [PATCH 1/5] Windows: fix unused function
setenv_foreign_option
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?1756838464183119352?=
X-GMAIL-MSGID: =?utf-8?q?1756838464183119352?=
|
| Series |
Allow mingw builds with -Werror
|
|
Commit Message
Frank Lichtenheld
Feb. 3, 2023, 7:14 p.m. UTC
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
---
src/openvpn/options.c | 2 ++
1 file changed, 2 insertions(+)
Comments
I haven't tested it in the MinGW environment, but checked the code in MSVC and ensured that setenv_foreign_option is indeed not used at all in Win32. Acked-by: Lev Stipakov <lstipakov@gmail.com> pe 3. helmik. 2023 klo 21.15 Frank Lichtenheld (frank@lichtenheld.com) kirjoitti: > > Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> > --- > src/openvpn/options.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/openvpn/options.c b/src/openvpn/options.c > index 6ae3faf8..ab1b01cf 100644 > --- a/src/openvpn/options.c > +++ b/src/openvpn/options.c > @@ -1041,6 +1041,7 @@ setenv_settings(struct env_set *es, const struct options *o) > } > } > > +#ifndef _WIN32 > static void > setenv_foreign_option(struct options *o, const char *argv[], int len, struct env_set *es) > { > @@ -1078,6 +1079,7 @@ setenv_foreign_option(struct options *o, const char *argv[], int len, struct env > gc_free(&gc); > } > } > +#endif /* ifndef _WIN32 */ > > static in_addr_t > get_ip_addr(const char *ip_string, int msglevel, bool *error) > -- > 2.34.1 > > > > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Tested on plain linux (which needs setenv_foreign_option) and MingW
(which no longer warns) compile. Trivial enough.
Your patch has been applied to the master and release/2.6 branch.
commit 8aeec3aa36873489d3e708ae694c57e59b4302ef (master)
commit b9d35055eae676790f3bc214c00a01f756b0cd55 (release/2.6)
Author: Frank Lichtenheld
Date: Fri Feb 3 20:14:36 2023 +0100
Windows: fix unused function setenv_foreign_option
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20230203191440.136050-2-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26145.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 6ae3faf8..ab1b01cf 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -1041,6 +1041,7 @@ setenv_settings(struct env_set *es, const struct options *o) } } +#ifndef _WIN32 static void setenv_foreign_option(struct options *o, const char *argv[], int len, struct env_set *es) { @@ -1078,6 +1079,7 @@ setenv_foreign_option(struct options *o, const char *argv[], int len, struct env gc_free(&gc); } } +#endif /* ifndef _WIN32 */ static in_addr_t get_ip_addr(const char *ip_string, int msglevel, bool *error)