]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
networking: silence warnings about unused arguments
authorAntonio Quartulli <a@unstable.cc>
Sat, 2 Apr 2022 07:08:57 +0000 (09:08 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 3 Apr 2022 14:45:48 +0000 (16:45 +0200)
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 <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
src/openvpn/networking.h

index 2cbf61634b9c8f3556d7a238caee46219099369e..9335701e2f38be243e06c09682078954dda9ac2f 100644 (file)
@@ -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;
 }