dirmngr:dns,doc,gpg: Fix for noreturn for C11.

* dirmngr/dns.c: Use __noreturn__.
* doc/yat2m.c: Likewise.
* g10/main.h: Likewise.

--

GnuPG-bug-id: 4002
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-09-16 14:33:50 +09:00
parent ddc6f7d194
commit d5e29991c0
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
3 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ typedef int socket_fd_t;
#if __GNUC__
#define DNS_NOTUSED __attribute__((unused))
#define DNS_NORETURN __attribute__((noreturn))
#define DNS_NORETURN __attribute__((__noreturn__))
#else
#define DNS_NOTUSED
#define DNS_NORETURN

View File

@ -120,7 +120,7 @@
#if MY_GCC_VERSION >= 20500
# define ATTR_PRINTF(f, a) __attribute__ ((format(printf,f,a)))
# define ATTR_NR_PRINTF(f, a) __attribute__ ((noreturn, format(printf,f,a)))
# define ATTR_NR_PRINTF(f, a) __attribute__ ((__noreturn__, format(printf,f,a)))
#else
# define ATTR_PRINTF(f, a)
# define ATTR_NR_PRINTF(f, a)

View File

@ -87,7 +87,7 @@ struct weakhash
extern int g10_errors_seen;
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
void g10_exit(int rc) __attribute__ ((noreturn));
void g10_exit(int rc) __attribute__ ((__noreturn__));
#else
void g10_exit(int rc);
#endif