Replace __attribute__((__noreturn__)) with _Noreturn. (#77)
* Replace __attribute__((__noreturn__)) with _Noreturn. * Change _Noreturn to noreturn and #include <stdnoreturn.h>
This commit is contained in:
parent
2017c2e6ea
commit
bb538fe67e
1
awk.h
1
awk.h
@ -25,6 +25,7 @@ THIS SOFTWARE.
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdnoreturn.h>
|
||||
|
||||
typedef double Awkfloat;
|
||||
|
||||
|
2
main.c
2
main.c
@ -52,7 +52,7 @@ static size_t curpfile; /* current filename */
|
||||
|
||||
bool safe = false; /* true => "safe" mode */
|
||||
|
||||
static __attribute__((__noreturn__)) void fpecatch(int n
|
||||
static noreturn void fpecatch(int n
|
||||
#ifdef SA_SIGINFO
|
||||
, siginfo_t *si, void *uc
|
||||
#endif
|
||||
|
6
proto.h
6
proto.h
@ -46,7 +46,7 @@ extern void freetr(Node *);
|
||||
extern int hexstr(const uschar **);
|
||||
extern int quoted(const uschar **);
|
||||
extern char *cclenter(const char *);
|
||||
extern void overflo(const char *) __attribute__((__noreturn__));
|
||||
extern noreturn void overflo(const char *);
|
||||
extern void cfoll(fa *, Node *);
|
||||
extern int first(Node *);
|
||||
extern void follow(Node *);
|
||||
@ -137,8 +137,8 @@ extern void bracecheck(void);
|
||||
extern void bcheck2(int, int, int);
|
||||
extern void SYNTAX(const char *, ...)
|
||||
__attribute__((__format__(__printf__, 1, 2)));
|
||||
extern void FATAL(const char *, ...)
|
||||
__attribute__((__format__(__printf__, 1, 2), __noreturn__));
|
||||
extern noreturn void FATAL(const char *, ...)
|
||||
__attribute__((__format__(__printf__, 1, 2)));
|
||||
extern void WARNING(const char *, ...)
|
||||
__attribute__((__format__(__printf__, 1, 2)));
|
||||
extern void error(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user