summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2019-03-11 13:19:04 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2019-03-11 13:19:04 +0000
commit685c182433c5320e300554c4944577b4d5a35715 (patch)
tree52a56e31b601a35dfe6528d6cd3e9ff3cd34c43e /usr.bin/mandoc
parent2afb7cd9b071e4505a3bf24ba612f7cd9b29d9b9 (diff)
mark check_abort() and post_abort() as __dead;
based on a patch by Christos@ Zoulas at NetBSD
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/man_validate.c6
-rw-r--r--usr.bin/mandoc/mdoc_validate.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c
index f2d4c203184..684e7bef805 100644
--- a/usr.bin/mandoc/man_validate.c
+++ b/usr.bin/mandoc/man_validate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man_validate.c,v 1.116 2018/12/31 10:03:38 schwarze Exp $ */
+/* $OpenBSD: man_validate.c,v 1.117 2019/03/11 13:19:03 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012-2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -39,7 +39,7 @@
typedef void (*v_check)(CHKARGS);
-static void check_abort(CHKARGS);
+static __dead void check_abort(CHKARGS);
static void check_par(CHKARGS);
static void check_part(CHKARGS);
static void check_root(CHKARGS);
@@ -194,7 +194,7 @@ check_root(CHKARGS)
"(OpenBSD)" : "(NetBSD)");
}
-static void
+static __dead void
check_abort(CHKARGS)
{
abort();
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c
index 53b03a6119e..97c565f76b2 100644
--- a/usr.bin/mandoc/mdoc_validate.c
+++ b/usr.bin/mandoc/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_validate.c,v 1.286 2019/03/04 13:01:52 schwarze Exp $ */
+/* $OpenBSD: mdoc_validate.c,v 1.287 2019/03/11 13:19:03 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -62,7 +62,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);
@@ -495,7 +495,7 @@ check_toptext(struct roff_man *mdoc, int ln, int pos, const char *p)
}
}
-static void
+static __dead void
post_abort(POST_ARGS)
{
abort();