[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 187/254: curl-compilers.m4: enable -Wshift-sign-ove
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 187/254: curl-compilers.m4: enable -Wshift-sign-overflow for clang |
Date: |
Sat, 17 Jun 2017 16:53:39 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.
commit 314a7fa3ceb74f90cc7cce28bef7517ef874f64c
Author: Marcel Raad <address@hidden>
AuthorDate: Tue May 30 10:07:47 2017 +0200
curl-compilers.m4: enable -Wshift-sign-overflow for clang
clang 2.9+ supports -Wshift-sign-overflow, which warns about undefined
behavior on signed left shifts when shifting by too many places.
Ref: https://github.com/curl/curl/issues/1516
Closes https://github.com/curl/curl/pull/1517
---
m4/curl-compilers.m4 | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 589032446..673f64097 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -881,6 +881,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
if test "$compiler_num" -ge "101"; then
tmp_CFLAGS="$tmp_CFLAGS -Wunused"
fi
+ #
+ dnl Only clang 2.9 or later
+ if test "$compiler_num" -ge "209"; then
+ tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
+ fi
fi
;;
#
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 248/254: configure: update the copyright year in the output, (continued)
- [GNUnet-SVN] [gnurl] 248/254: configure: update the copyright year in the output, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 139/254: CURLOPT_HTTPPROXYTUNNEL: clarify, add example, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 67/254: buffer: use data->set.buffer_size instead of BUFSIZE, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 195/254: CURLOPT_SSH_KEY*.3: typos, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 192/254: CURLOPT_FNMATCH_DATA.3: modified example to avoid fcpp issues, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 140/254: docs/libcurl/opts: added more examples in man pages, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 171/254: ssh: fix 'left' may be used uninitialized, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 84/254: curl_setup_once: use SEND_QUAL_ARG2 for swrite, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 160/254: assert: avoid, use DEBUGASSERT instead!, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 209/254: MD(4|5): silence cast-align clang warning, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 187/254: curl-compilers.m4: enable -Wshift-sign-overflow for clang,
gnunet <=
- [GNUnet-SVN] [gnurl] 247/254: BINDINGS: update SP-Forth and OCaml urls, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 219/254: travis: add coverage, distcheck and cmake builds, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 223/254: RELEASE-NOTES: synced with 65ba92650, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 186/254: CURLOPT_PROXY.3: fix test 1140 breakage, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 162/254: url: fix declaration of 'pipe' shadows a global declaration, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 214/254: updatemanpages.pl: error out on too old git version, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 148/254: mkhelp.pl: do not add current time into curl binary, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 164/254: LDAP: using ldap_bind_s on Windows with methods (#878), gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 234/254: metalink: remove unused printf() argument, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 153/254: tests: stabilize test 1034, gnunet, 2017/06/17