MSVC does not support VLAs, so we want to prevent VLAs from being introduced under this path.
Signed-off-by: Andre Muezerie <andre...@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