From: David Marchand <david.marchand@redhat.com>
To: Andre Muezerie <andremue@linux.microsoft.com>
Cc: Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>, dev@dpdk.org
Subject: Re: [PATCH] test_ipfrag: remove array of size zero
Date: Fri, 16 May 2025 11:17:34 +0200 [thread overview]
Message-ID: <CAJFAV8wqi0v6FP7v4WKc+rd=DrDK5Y06qqO1W3unoEXQ6KMKLw@mail.gmail.com> (raw)
In-Reply-To: <1741313581-14300-1-git-send-email-andremue@linux.microsoft.com>
On Fri, Mar 7, 2025 at 3:13 AM Andre Muezerie
<andremue@linux.microsoft.com> wrote:
>
> When compiling with MSVC the error below pops up:
>
> ../app/test/test_ipfrag.c(39): error C2466:
> cannot allocate an array of constant size 0
> ../app/test/test_ipfrag.c(157): warning C4034: sizeof returns 0
> ../app/test/test_ipfrag.c(160): warning C4034: sizeof returns 0
>
> The fix is to simplify the code and remove the zero-size array.
>
> Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
Looks simple enough and valid.
Reviewed-by: David Marchand <david.marchand@redhat.com>
--
David Marchand
next prev parent reply other threads:[~2025-05-16 9:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 2:13 Andre Muezerie
2025-05-16 9:17 ` David Marchand [this message]
2025-05-16 13:18 ` David Marchand
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='CAJFAV8wqi0v6FP7v4WKc+rd=DrDK5Y06qqO1W3unoEXQ6KMKLw@mail.gmail.com' \
--to=david.marchand@redhat.com \
--cc=andremue@linux.microsoft.com \
--cc=dev@dpdk.org \
--cc=konstantin.v.ananyev@yandex.ru \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).