All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: Geliang Tang <geliang@kernel.org>, mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-net 0/2] selftests: mptcp: connect: fix C23 extension warning
Date: Mon, 4 Aug 2025 10:32:44 +0200	[thread overview]
Message-ID: <be7aef88-fd39-4dd2-856f-b0d96a2764a9@kernel.org> (raw)
In-Reply-To: <7bc26a32ca9ce941ddc0040be77dab18c8b55256.camel@kernel.org>

Hi Geliang,

On 03/08/2025 16:08, Geliang Tang wrote:
> Hi Matt,
> 
> On Sun, 2025-08-03 at 14:13 +0200, Matthieu Baerts (NGI0) wrote:
>> 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);
>>         |         ^
>>
>>   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.
>>
>> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
> 
> LGTM!
> 
> Reviewed-by: Geliang Tang <geliang@kernel.org>

Thank you for the review!

Now in our tree:

New patches for t/upstream-net and t/upstream:
- 9486cb4888a5: selftests: mptcp: connect: fix C23 extension warning
- 6a17fdde8884: selftests: mptcp: sockopt: fix C23 extension warning
- Results: 9380c91e86eb..82cf743daa3e (export-net)
- Results: c6e4c6478b19..58528cde3023 (export)

Tests are now in progress:

- export-net:
https://github.com/multipath-tcp/mptcp_net-next/commit/3ce0a4201191ee78fa4fbc3bcbe199f4409aa9ce/checks
- export:
https://github.com/multipath-tcp/mptcp_net-next/commit/673139156ef681c8c71abad4cd97db0ee2f7f6d0/checks

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


      reply	other threads:[~2025-08-04  8:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-03 12:13 [PATCH mptcp-net 0/2] selftests: mptcp: connect: fix C23 extension warning Matthieu Baerts (NGI0)
2025-08-03 12:13 ` [PATCH mptcp-net 1/2] " Matthieu Baerts (NGI0)
2025-08-03 12:13 ` [PATCH mptcp-net 2/2] selftests: mptcp: sockopt: " Matthieu Baerts (NGI0)
2025-08-03 14:08 ` [PATCH mptcp-net 0/2] selftests: mptcp: connect: " Geliang Tang
2025-08-04  8:32   ` Matthieu Baerts [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=be7aef88-fd39-4dd2-856f-b0d96a2764a9@kernel.org \
    --to=matttbe@kernel.org \
    --cc=geliang@kernel.org \
    --cc=mptcp@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.