[PATCH v9 18/21] build: enable vla warnings on Windows built code
Stephen Hemminger
stephen at networkplumber.org
Wed Nov 20 18:20:29 CET 2024
On Tue, 19 Nov 2024 17:54:43 -0800
Andre Muezerie <andremue at linux.microsoft.com> wrote:
> From: Tyler Retzlaff <roretzla at linux.microsoft.com>
>
> MSVC does not support optional C11 VLAs. When building for Windows
> enable -Wvla so that mingw and clang also fail if a VLA is used.
>
> Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> ---
It would be good to catch VLA's in new code even if not on Windows.
Some parts like testpmd and eal should have it enabled
More information about the dev
mailing list