On Fri, 10 Jan 2025 12:22:22 -0800
Andre Muezerie <andre...@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?

Reply via email to