From ab28cc352b532ce739b9d9e4bdf948e7bfec5d21 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 13 Aug 2022 19:40:07 +0200 Subject: [PATCH] Adjust function definition in if_ovpn_c.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: tests/sys/net/if_ovpn/if_ovpn_c.c:19:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] fake_sockaddr() ^ void This is because fake_sockaddr() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days --- tests/sys/net/if_ovpn/if_ovpn_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/net/if_ovpn/if_ovpn_c.c b/tests/sys/net/if_ovpn/if_ovpn_c.c index 44363620d277..d98f5a0dd8e6 100644 --- a/tests/sys/net/if_ovpn/if_ovpn_c.c +++ b/tests/sys/net/if_ovpn/if_ovpn_c.c @@ -16,7 +16,7 @@ #define OVPN_NEW_PEER _IO ('D', 1) static nvlist_t * -fake_sockaddr() +fake_sockaddr(void) { uint32_t addr = htonl(INADDR_LOOPBACK); nvlist_t *nvl;