[v16,31/60] app/test-sad: disable warning about use of VLAs

Message ID 1736821958-3295-32-git-send-email-andremue@linux.microsoft.com (mailing list archive)
State Changes Requested
Delegated to: David Marchand
Headers
Series remove use of VLAs for Windows |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Andre Muezerie Jan. 14, 2025, 2:32 a.m. UTC
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@linux.microsoft.com>
---
 app/test-sad/meson.build | 8 ++++++++
 1 file changed, 8 insertions(+)
  

Patch

diff --git a/app/test-sad/meson.build b/app/test-sad/meson.build
index a50616a9c7..e8149a53d9 100644
--- a/app/test-sad/meson.build
+++ b/app/test-sad/meson.build
@@ -9,3 +9,11 @@  endif
 
 sources = files('main.c')
 deps += ['ipsec', 'net']
+
+extra_flags = ['-Wno-vla']
+
+foreach arg: extra_flags
+    if cc.has_argument(arg)
+        cflags += arg
+    endif
+endforeach