diff options
| author | Matthieu Baerts (NGI0) <[email protected]> | 2025-08-15 17:28:25 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-08-19 00:39:59 +0000 |
| commit | 2eefbed30d46d5e68593baf6b52923e00e7678af (patch) | |
| tree | 20ef545caa3152ee6e51cd4ef4cf65f9d5086dda | |
| parent | selftests: mptcp: disable add_addr retrans in endpoint_tests (diff) | |
| download | kernel-2eefbed30d46d5e68593baf6b52923e00e7678af.tar.gz kernel-2eefbed30d46d5e68593baf6b52923e00e7678af.zip | |
selftests: mptcp: connect: fix C23 extension warning
GCC was complaining about the new label:
mptcp_connect.c:187:2: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
187 | int err = getaddrinfo(node, service, hints, res);
| ^
Simply declare 'err' before the label to avoid this warning.
Fixes: a862771d1aa4 ("selftests: mptcp: use IPPROTO_MPTCP for getaddrinfo")
Cc: [email protected]
Reviewed-by: Geliang Tang <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Link: https://patch.msgid.link/20250815-net-mptcp-misc-fixes-6-17-rc2-v1-7-521fe9957892@kernel.org
Signed-off-by: Jakub Kicinski <[email protected]>
| -rw-r--r-- | tools/testing/selftests/net/mptcp/mptcp_connect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.c b/tools/testing/selftests/net/mptcp/mptcp_connect.c index ac1349c4b9e5..4f07ac9fa207 100644 --- a/tools/testing/selftests/net/mptcp/mptcp_connect.c +++ b/tools/testing/selftests/net/mptcp/mptcp_connect.c @@ -183,9 +183,10 @@ static void xgetaddrinfo(const char *node, const char *service, struct addrinfo *hints, struct addrinfo **res) { -again: - int err = getaddrinfo(node, service, hints, res); + int err; +again: + err = getaddrinfo(node, service, hints, res); if (err) { const char *errstr; |
