[PATCH v16 54/60] table: disable warning about use of VLAs
Andre Muezerie
andremue at linux.microsoft.com
Tue Jan 14 03:32:32 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/table/meson.build | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/table/meson.build b/lib/table/meson.build
index 9b3d9ac759..f15796f063 100644
--- a/lib/table/meson.build
+++ b/lib/table/meson.build
@@ -1,6 +1,14 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+extra_flags = ['-Wno-vla']
+
+foreach arg: extra_flags
+ if cc.has_argument(arg)
+ cflags += arg
+ endif
+endforeach
+
sources = files(
'rte_swx_keycmp.c',
'rte_swx_table_em.c',
--
2.47.0.vfs.0.3
More information about the dev
mailing list