diff options
| author | Matthieu Baerts (NGI0) <matttbe@kernel.org> | 2025-08-15 19:28:26 +0200 | 
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-08-18 17:39:59 -0700 | 
| commit | 3259889fd3c0cc165b7e9ee375c789875dd32326 (patch) | |
| tree | ee11f8d13c3540c8092fc1a37039c2c7daa33ab2 /rust/helpers/refcount.c | |
| parent | 2eefbed30d46d5e68593baf6b52923e00e7678af (diff) | |
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: dd367e81b79a ("selftests: mptcp: sockopt: use IPPROTO_MPTCP for getaddrinfo")
Cc: stable@vger.kernel.org
Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250815-net-mptcp-misc-fixes-6-17-rc2-v1-8-521fe9957892@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/refcount.c')
0 files changed, 0 insertions, 0 deletions
