gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 30/208: curl-compilers.m4: enable vla warning for c


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 30/208: curl-compilers.m4: enable vla warning for clang
Date: Wed, 09 Aug 2017 17:33:47 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.

commit 783ce023a54cde30f9b3597554d65e0d24aa2655
Author: Marcel Raad <address@hidden>
AuthorDate: Wed Jun 14 18:18:41 2017 +0200

    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"

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]