From: Antonio Quartulli
Date: Sat, 2 Apr 2022 07:08:57 +0000 (+0200)
Subject: networking: silence warnings about unused arguments
X-Git-Tag: v2.6_beta1~246
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3aa44699c69811493a81bda340a03530059929b;p=thirdparty%2Fopenvpn.git
networking: silence warnings about unused arguments
In the net_ctx_init() stub definition, arguments are not used and
therefore they should be explicitly marked to avoid compiler
warnings.
Signed-off-by: Antonio Quartulli
Acked-by: Gert Doering
Message-Id: <20220402070902.30282-3-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24052.html
Signed-off-by: Gert Doering
---
diff --git a/src/openvpn/networking.h b/src/openvpn/networking.h
index 2cbf61634..9335701e2 100644
--- a/src/openvpn/networking.h
+++ b/src/openvpn/networking.h
@@ -42,6 +42,9 @@ typedef void *openvpn_net_iface_t;
static inline int
net_ctx_init(struct context *c, openvpn_net_ctx_t *ctx)
{
+ (void)c;
+ (void)ctx;
+
return 0;
}