[PATCH v15 49/60] metrics: disable warning about use of VLAs
Andre Muezerie
andremue at linux.microsoft.com
Tue Jan 14 02:23:01 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>
---
lib/metrics/meson.build | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/metrics/meson.build b/lib/metrics/meson.build
index 8c1c4b4b49..11314d8373 100644
--- a/lib/metrics/meson.build
+++ b/lib/metrics/meson.build
@@ -9,3 +9,11 @@ if dpdk_conf.has('RTE_HAS_JANSSON')
endif
deps += ['ethdev', 'telemetry']
+
+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