summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2023-04-04 22:19:07 +0200
committerAzat Khuzhin <azat@libevent.org>2023-04-04 22:19:07 +0200
commitf747a7b93b0017a635dc5dffb84687e8f46e18ab (patch)
treedf6e5604700339fab0e8c4ad91b7d1e2eb6e1a56
parentf04d90b1219c392309671f3b477c80dea146a2fd (diff)
downloadlibevent-f747a7b93b0017a635dc5dffb84687e8f46e18ab.tar.gz
Prohibit VLA in autotools too
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
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*)