gnunet-svn
[Top][All Lists]
Advanced

[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



reply via email to

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