[git] GnuPG - branch, STABLE-BRANCH-2-2, updated. gnupg-2.2.2-12-g3ecd1a4

by NIIBE Yutaka cvs at cvs.gnupg.org
Mon Nov 20 04:02:20 CET 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, STABLE-BRANCH-2-2 has been updated
       via  3ecd1a41be7c880976987d13e88342c98f37e064 (commit)
      from  e1984969cac06a88c7e6f5e49e5c3104d10a847d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3ecd1a41be7c880976987d13e88342c98f37e064
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Mon Nov 20 12:01:31 2017 +0900

    build: Check -Wlogical-op flag availability with -Werror.
    
    * configure.ac: Use -Werror.
    
    --
    
    Using clang, -Wlogical-op doesn't fail but generates warning.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/configure.ac b/configure.ac
index 42c0698..3d3a136 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1612,12 +1612,20 @@ if test "$GCC" = yes; then
           mycflags="$mycflags -Wdeclaration-after-statement"
         fi
 
-        AC_MSG_CHECKING([if gcc supports -Wlogical-op and -Wvla])
-        CFLAGS="-Wlogical-op -Wvla"
+        AC_MSG_CHECKING([if gcc supports -Wlogical-op])
+        CFLAGS="-Wlogical-op -Werror"
         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],_gcc_wopt=yes,_gcc_wopt=no)
         AC_MSG_RESULT($_gcc_wopt)
         if test x"$_gcc_wopt" = xyes ; then
-          mycflags="$mycflags -Wlogical-op -Wvla"
+          mycflags="$mycflags -Wlogical-op -Werror"
+        fi
+
+        AC_MSG_CHECKING([if gcc supports -Wvla])
+        CFLAGS="-Wvla"
+        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],_gcc_wopt=yes,_gcc_wopt=no)
+        AC_MSG_RESULT($_gcc_wopt)
+        if test x"$_gcc_wopt" = xyes ; then
+          mycflags="$mycflags -Wvla"
         fi
 
     else

-----------------------------------------------------------------------

Summary of changes:
 configure.ac | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list