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/bpf/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/bpf/meson.build b/lib/bpf/meson.build index aa258a9061..f3cc18efa8 100644 --- a/lib/bpf/meson.build +++ b/lib/bpf/meson.build @@ -7,6 +7,14 @@ if is_windows subdir_done() endif +extra_flags = ['-Wno-vla'] + +foreach arg: extra_flags + if cc.has_argument(arg) + cflags += arg + endif +endforeach + if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_32') build = false reason = 'not supported on 32-bit x86' -- 2.47.0.vfs.0.3