Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Andre Muezerie
Jan. 14, 2025, 2:32 a.m. UTC
MSVC does not support VLAs, so we want to prevent VLAs from being
introduced under this path.
Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
---
drivers/common/meson.build | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/common/meson.build b/drivers/common/meson.build index 8734af36aa..03debc9731 100644 --- a/drivers/common/meson.build +++ b/drivers/common/meson.build @@ -11,3 +11,11 @@ drivers = [ 'mvep', 'octeontx', ] + +extra_flags = ['-Wvla'] + +foreach arg: extra_flags + if cc.has_argument(arg) + cflags += arg + endif +endforeach