Skip to content

Commit

Permalink
networking: silence warnings about unused arguments
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg24052.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
ordex authored and cron2 committed Apr 3, 2022
1 parent c0fa37e commit c3aa446
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openvpn/networking.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c3aa446

Please sign in to comment.