gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 33/208: curl-compilers.m4: enable comma clang warni


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 33/208: curl-compilers.m4: enable comma clang warning
Date: Wed, 09 Aug 2017 17:33:50 +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 5bdf835c0b2e558ec885ba539f6b6307c4ab9787
Author: Marcel Raad <address@hidden>
AuthorDate: Fri Jun 16 14:13:41 2017 +0200

    curl-compilers.m4: enable comma clang warning
    
    It usually warns when using commas instead of semicolons or other
    operators by accident.
    
    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 9efe2ae23..a1801df97 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -901,6 +901,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
           if test "$compiler_num" -ge "306"; then
             tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
           fi
+          #
+          dnl Only clang 3.9 or later
+          if test "$compiler_num" -ge "309"; then
+            tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
+          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]