From: Marcel Raad Date: Wed, 14 Jun 2017 16:18:41 +0000 (+0200) Subject: curl-compilers.m4: enable vla warning for clang X-Git-Tag: curl-7_55_0~177 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=783ce023a54cde30f9b3597554d65e0d24aa2655;p=thirdparty%2Fcurl.git 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 --- diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 88e9d67ba2..5860f946ef 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"