[PATCH v14 03/81] eal/common: remove use of VLAs
Stephen Hemminger
stephen at networkplumber.org
Sat Jan 11 02:14:05 CET 2025
On Fri, 10 Jan 2025 12:22:22 -0800
Andre Muezerie <andremue at linux.microsoft.com> wrote:
> diff --git a/lib/eal/meson.build b/lib/eal/meson.build
> index e1d6c4cf17..352db049e9 100644
> --- a/lib/eal/meson.build
> +++ b/lib/eal/meson.build
> @@ -31,3 +31,11 @@ endif
> if is_freebsd
> annotate_locks = false
> endif
> +
> +warning_flags = ['-Wvla']
> +
> +foreach arg: warning_flags
> + if cc.has_argument(arg)
> + cflags += arg
> + endif
> +endforeach
> --
Could we enable it for all libs and only turn it off as required?
More information about the dev
mailing list