[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
- [GNUnet-SVN] [gnurl] 27/208: libtest/libntlmconnect: fix compiler warnings from f94fcdb, (continued)
- [GNUnet-SVN] [gnurl] 27/208: libtest/libntlmconnect: fix compiler warnings from f94fcdb, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 23/208: test1061: mark as flaky, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 21/208: mk-ca-bundle.pl: Check curl's exit code after certdata download, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 28/208: http-proxy: deal with EAGAIN, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 19/208: configure: disable nghttp2 too if HTTP has been disabled, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 39/208: http_proxy: fix compiler warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 32/208: curl-compilers.m4: enable missing-variable-declarations clang warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 41/208: CURLOPT_PREQUOTE.3: spellfix man page reference, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 38/208: TODO: update the TOC too, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 24/208: test1148: verify the -# progressbar, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 30/208: curl-compilers.m4: enable vla warning for clang,
gnunet <=
- [GNUnet-SVN] [gnurl] 33/208: curl-compilers.m4: enable comma clang warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 34/208: Makefile.m32: enable -W for MinGW32 build, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 40/208: http_proxy: fix build with http and proxy, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 51/208: travis: do the distcheck test build out-of-tree as well, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 43/208: PIPELINING_SERVER_BL: cleanup the internal list use, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 37/208: TODO: implement support for CURLOPT_PREQUOTE with SFTP, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 73/208: socks: use proxy_user instead of proxy_name, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 70/208: test1537: fixed memory leak on OOM, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 22/208: url: refactor the check for Windows drive letter in path, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 54/208: ci: whitelist branches to avoid testing feature branches twice, gnunet, 2017/08/09