[git] GPG-ERROR - branch, master, updated. libgpg-error-1.31-4-g3eee9ef

by Werner Koch cvs at cvs.gnupg.org
Wed May 30 17:21:55 CEST 2018


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 "Error codes used by GnuPG et al.".

The branch, master has been updated
       via  3eee9efc46f983fe0bf474c814944fef93a2a1b7 (commit)
      from  619abb6211e8f1f777c90c6a3260ccdcc8d04c25 (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 3eee9efc46f983fe0bf474c814944fef93a2a1b7
Author: Werner Koch <wk at gnupg.org>
Date:   Wed May 30 17:08:54 2018 +0200

    core: Fix problem with C11 and stdnoreturn.h.
    
    * src/gpg-error.h.in (GPGRT_ATTR_NORETURN): Use gcc specific symbol name
    __noreturn__.
    --
    
    GnuPG-bug-id: 4002
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index ce7d278..4c5ac38 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -178,7 +178,7 @@ typedef unsigned int gpg_error_t;
 
 /* The noreturn attribute.  */
 #if _GPG_ERR_GCC_VERSION >= 20500
-# define GPGRT_ATTR_NORETURN   __attribute__ ((noreturn))
+# define GPGRT_ATTR_NORETURN   __attribute__ ((__noreturn__))
 #else
 # define GPGRT_ATTR_NORETURN
 #endif
@@ -188,12 +188,12 @@ typedef unsigned int gpg_error_t;
 # define GPGRT_ATTR_PRINTF(f, a) \
                     __attribute__ ((format(__gnu_printf__,f,a)))
 # define GPGRT_ATTR_NR_PRINTF(f, a) \
-                    __attribute__ ((noreturn, format(__gnu_printf__,f,a)))
+                    __attribute__ ((__noreturn__, format(__gnu_printf__,f,a)))
 #elif _GPG_ERR_GCC_VERSION >= 20500
 # define GPGRT_ATTR_PRINTF(f, a) \
                     __attribute__ ((format(printf,f,a)))
 # define GPGRT_ATTR_NR_PRINTF(f, a) \
-                    __attribute__ ((noreturn, format(printf,f,a)))
+                    __attribute__ ((__noreturn__, format(printf,f,a)))
 #else
 # define GPGRT_ATTR_PRINTF(f, a)
 # define GPGRT_ATTR_NR_PRINTF(f, a)

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

Summary of changes:
 src/gpg-error.h.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Error codes used by GnuPG et al.
http://git.gnupg.org




More information about the Gnupg-commits mailing list