gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 111/411: configure: let --enable-debug set -Wenum-conversion wit


From: gnunet
Subject: [gnurl] 111/411: configure: let --enable-debug set -Wenum-conversion with gcc >= 10
Date: Wed, 13 Jan 2021 01:18:46 +0100

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

nikita pushed a commit to branch master
in repository gnurl.

commit 8684bb70d3676dcd84ba14f0d990a1d8dc451c3b
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Mon Sep 7 11:03:30 2020 +0200

    configure: let --enable-debug set -Wenum-conversion with gcc >= 10
    
    Unfortunately, this option is not detecting the same issues as clang's
    -Wassign-enum flag, but should still be useful to detect future
    mistakes.
    
    Closes #5930
---
 m4/curl-compilers.m4 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 107dc6ab9..b0d5d4213 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -1119,6 +1119,10 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
             fi
           fi
         fi
+        dnl Only gcc 10 or later
+        if test "$compiler_num" -ge "1000"; then
+          CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
+        fi
         ;;
         #
       HP_UX_C)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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