diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-03-11 13:21:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-03-11 13:21:11 +0000 |
commit | 42b47b2c3ba1a93eb0d533fafeb94e04c29e504d (patch) | |
tree | 441f9dea0758364afd5dae7a5205be3767e45406 /mdoc_validate.c | |
parent | e9f7fb459788fe20cd6c57c0ff31a401ea96eab9 (diff) | |
download | mandoc-42b47b2c3ba1a93eb0d533fafeb94e04c29e504d.tar.gz |
mark check_abort() and post_abort() as __dead;
based on a patch by Christos@ Zoulas at NetBSD
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index ecbc509a..4b76c262 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -64,7 +64,7 @@ static size_t macro2len(enum roff_tok); static void rewrite_macro2len(struct roff_man *, char **); static int similar(const char *, const char *); -static void post_abort(POST_ARGS); +static __dead void post_abort(POST_ARGS); static void post_an(POST_ARGS); static void post_an_norm(POST_ARGS); static void post_at(POST_ARGS); @@ -497,7 +497,7 @@ check_toptext(struct roff_man *mdoc, int ln, int pos, const char *p) } } -static void +static __dead void post_abort(POST_ARGS) { abort(); |