Files
linux/tools/testing/selftests
Matthieu Baerts (NGI0) 3259889fd3 selftests: mptcp: sockopt: fix C23 extension warning
GCC was complaining about the new label:

  mptcp_inq.c:79:2: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
     79 |         int err = getaddrinfo(node, service, hints, res);
        |         ^

  mptcp_sockopt.c:166:2: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
    166 |         int err = getaddrinfo(node, service, hints, res);
        |         ^

Simply declare 'err' before the label to avoid this warning.

Fixes: dd367e81b7 ("selftests: mptcp: sockopt: 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-8-521fe9957892@kernel.org
Signed-off-by: Jakub Kicinski <[email protected]>
2025-08-18 17:39:59 -07:00
..
…
…
…
…
…
…
…
2025-08-02 12:01:41 -07:00
…
2025-04-01 15:25:15 +02:00
…
…
…
…
2025-07-23 11:56:02 +02:00
…
…
2025-07-15 08:04:17 -06:00
2025-03-03 20:00:12 +01:00