[PATCH v14 52/81] lib/mempool: add compile warning about use of VLAs
Andre Muezerie
andremue at linux.microsoft.com
Fri Jan 10 21:23:11 CET 2025
MSVC does not support VLAs, so we want to prevent VLAs from being
introduced under this path.
Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
---
lib/mempool/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/mempool/meson.build b/lib/mempool/meson.build
index 8099a56466..3921945fb3 100644
--- a/lib/mempool/meson.build
+++ b/lib/mempool/meson.build
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
-extra_flags = []
+extra_flags = ['-Wvla']
foreach flag: extra_flags
if cc.has_argument(flag)
--
2.47.0.vfs.0.3
More information about the dev
mailing list