From f747a7b93b0017a635dc5dffb84687e8f46e18ab Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 4 Apr 2023 22:19:07 +0200 Subject: Prohibit VLA in autotools too --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index b5d4fb75..f2292386 100644 --- a/configure.ac +++ b/configure.ac @@ -776,6 +776,9 @@ if test "$enable_gcc_warnings" != "no" && test "$GCC" = "yes"; then dnl Disable unknown pragmas warnings. AX_CHECK_COMPILE_FLAG([-Wno-pragmas], [CFLAGS="$CFLAGS -Wno-pragmas"],[],[-Werror]) + dnl Disable Variable Lenght Array + AX_CHECK_COMPILE_FLAG([-Wvla], [CFLAGS="$CFLAGS -Wvla"],[],[-Werror]) + if test "$have_clang" = "yes"; then case "$host_os" in darwin*) -- cgit v1.2.1