From patchwork Fri Jan 14 17:14:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Openvpn-devel,RFC,v2,2/7] networking: silence warnings about unused arguments X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 2225 Message-Id: <20220114171446.26446-3-a@unstable.cc> To: openvpn-devel@lists.sourceforge.net Cc: Antonio Quartulli Date: Fri, 14 Jan 2022 18:14:41 +0100 From: Antonio Quartulli List-Id: 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 --- src/openvpn/networking.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openvpn/networking.h b/src/openvpn/networking.h index ad25fc79..2f0ee160 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; }