From 783ce023a54cde30f9b3597554d65e0d24aa2655 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Wed, 14 Jun 2017 18:18:41 +0200 Subject: [PATCH] curl-compilers.m4: enable vla warning for clang Previously, that warning was only implicitly active in C90 mode. Enable it unconditionally as already done for GCC. Closes https://github.com/curl/curl/pull/1578 --- m4/curl-compilers.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 88e9d67ba..5860f946e 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -882,6 +882,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [ tmp_CFLAGS="$tmp_CFLAGS -Wunused" fi # + dnl Only clang 2.8 or later + if test "$compiler_num" -ge "208"; then + tmp_CFLAGS="$tmp_CFLAGS -Wvla" + fi + # dnl Only clang 2.9 or later if test "$compiler_num" -ge "209"; then tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"