diff options
author | awkfan77 <awkfan77@mailfence.com> | 2020-04-05 19:10:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-05 21:10:52 +0300 |
commit | bb538fe67eb91f5aeeb99012304c91aeeb08ba97 (patch) | |
tree | 2b2e92c1a0fbf77c392ec4a3c1b7bc6543012e8d /proto.h | |
parent | 2017c2e6eaa6a0d5a3e1ad2c9c891e82411dca83 (diff) | |
download | one-true-awk-bb538fe67eb91f5aeeb99012304c91aeeb08ba97.tar.gz |
Replace __attribute__((__noreturn__)) with _Noreturn. (#77)
* Replace __attribute__((__noreturn__)) with _Noreturn.
* Change _Noreturn to noreturn and #include <stdnoreturn.h>
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |