[PATCH v16 22/60] app/proc-info: disable warning about use of VLAs
Andre Muezerie
andremue at linux.microsoft.com
Tue Jan 14 03:32:00 CET 2025
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 <andremue at linux.microsoft.com>
---
app/proc-info/meson.build | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/app/proc-info/meson.build b/app/proc-info/meson.build
index 4f83f29a64..cd1399e964 100644
--- a/app/proc-info/meson.build
+++ b/app/proc-info/meson.build
@@ -12,3 +12,11 @@ deps += ['ethdev', 'security', 'eventdev']
if dpdk_conf.has('RTE_LIB_METRICS')
deps += 'metrics'
endif
+
+extra_flags = ['-Wno-vla']
+
+foreach arg: extra_flags
+ if cc.has_argument(arg)
+ cflags += arg
+ endif
+endforeach
--
2.47.0.vfs.0.3
More information about the dev
mailing list