[PATCH v16 46/60] eventdev: disable warning about use of VLAs
Andre Muezerie
andremue at linux.microsoft.com
Tue Jan 14 03:32:24 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/eventdev/meson.build | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/eventdev/meson.build b/lib/eventdev/meson.build
index a04bb86f0f..04b81f1e9e 100644
--- a/lib/eventdev/meson.build
+++ b/lib/eventdev/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(
'eventdev_private.c',
'eventdev_trace_points.c',
--
2.47.0.vfs.0.3
More information about the dev
mailing list