[PATCH] test_ipfrag: remove array of size zero
David Marchand
david.marchand at redhat.com
Fri May 16 15:18:56 CEST 2025
On Fri, Mar 7, 2025 at 3:13 AM Andre Muezerie
<andremue at 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 at linux.microsoft.com>
Applied, thanks.
--
David Marchand
More information about the dev
mailing list