This path is known to make use of VLAs, so we need to disable warnings issued for VLAs to prevent the build from breaking.
Signed-off-by: Andre Muezerie <andre...@linux.microsoft.com> --- lib/power/meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/power/meson.build b/lib/power/meson.build index b3a7bc7b2e..c52433f21e 100644 --- a/lib/power/meson.build +++ b/lib/power/meson.build @@ -11,6 +11,15 @@ if not is_linux build = false reason = 'only supported on Linux' endif + +extra_flags = ['-Wno-vla'] + +foreach arg: extra_flags + if cc.has_argument(arg) + cflags += arg + endif +endforeach + sources = files( 'power_common.c', 'rte_power_cpufreq.c', -- 2.47.0.vfs.0.3