Skip to content

Commit d5e2999

Browse files
author
NIIBE Yutaka
committed
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 <[email protected]>
1 parent ddc6f7d commit d5e2999

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dirmngr/dns.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ typedef int socket_fd_t;
130130

131131
#if __GNUC__
132132
#define DNS_NOTUSED __attribute__((unused))
133-
#define DNS_NORETURN __attribute__((noreturn))
133+
#define DNS_NORETURN __attribute__((__noreturn__))
134134
#else
135135
#define DNS_NOTUSED
136136
#define DNS_NORETURN

doc/yat2m.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120

121121
#if MY_GCC_VERSION >= 20500
122122
# define ATTR_PRINTF(f, a) __attribute__ ((format(printf,f,a)))
123-
# define ATTR_NR_PRINTF(f, a) __attribute__ ((noreturn, format(printf,f,a)))
123+
# define ATTR_NR_PRINTF(f, a) __attribute__ ((__noreturn__, format(printf,f,a)))
124124
#else
125125
# define ATTR_PRINTF(f, a)
126126
# define ATTR_NR_PRINTF(f, a)

g10/main.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ struct weakhash
8787
extern int g10_errors_seen;
8888

8989
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
90-
void g10_exit(int rc) __attribute__ ((noreturn));
90+
void g10_exit(int rc) __attribute__ ((__noreturn__));
9191
#else
9292
void g10_exit(int rc);
9393
#endif

0 commit comments

Comments
 (0)