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/ipsec/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ipsec/meson.build b/lib/ipsec/meson.build index 5c5a4aae78..ba14d1315d 100644 --- a/lib/ipsec/meson.build +++ b/lib/ipsec/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 + sources = files('esp_inb.c', 'esp_outb.c', 'sa.c', 'ses.c', 'ipsec_sad.c', 'ipsec_telemetry.c') -- 2.47.0.vfs.0.3