mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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:
parent
ddc6f7d194
commit
d5e29991c0
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user