summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-09-26 00:54:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-09-26 00:54:03 +0000
commitcd4599580495e7b8d149487099c19840add8d355 (patch)
tree4f7005815ebe5dc98b126fe472130e0d8da88e96
parent15a545d1196bd2454c341893c1f5150bfff17fd2 (diff)
downloadmandoc-cd4599580495e7b8d149487099c19840add8d355.tar.gz
/* NOTREACHED */ after abort() is silly, delete it
-rw-r--r--html.c1
-rw-r--r--man_html.c1
-rw-r--r--man_macro.c1
-rw-r--r--mdoc_html.c5
-rw-r--r--mdoc_macro.c1
-rw-r--r--mdoc_term.c4
-rw-r--r--mdoc_validate.c3
-rw-r--r--out.c1
-rw-r--r--roff.c5
-rw-r--r--tbl_opts.c1
-rw-r--r--tbl_term.c1
-rw-r--r--term.c1
-rw-r--r--term_ascii.c1
-rw-r--r--tree.c4
14 files changed, 2 insertions, 28 deletions
diff --git a/html.c b/html.c
index ad587aaf..4bd02bbb 100644
--- a/html.c
+++ b/html.c
@@ -224,7 +224,6 @@ print_metaf(struct html *h, enum mandoc_esc deco)
break;
default:
abort();
- /* NOTREACHED */
}
if (h->metaf) {
diff --git a/man_html.c b/man_html.c
index ffb265e1..f8f43485 100644
--- a/man_html.c
+++ b/man_html.c
@@ -427,7 +427,6 @@ man_alt_pre(MAN_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
if (i)
diff --git a/man_macro.c b/man_macro.c
index 1b97ce8c..e0da576c 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -225,7 +225,6 @@ blk_close(MACRO_PROT_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
for (nn = man->last->parent; nn; nn = nn->parent)
diff --git a/mdoc_html.c b/mdoc_html.c
index a4272dcf..b5a944ad 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1000,7 +1000,6 @@ mdoc_bl_pre(MDOC_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
return(1);
@@ -1997,7 +1996,6 @@ mdoc__x_pre(MDOC_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
if (MDOC__U != n->tok) {
@@ -2044,7 +2042,6 @@ mdoc_bk_pre(MDOC_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
return(1);
@@ -2124,7 +2121,6 @@ mdoc_quote_pre(MDOC_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
h->flags |= HTML_NOSPACE;
@@ -2192,7 +2188,6 @@ mdoc_quote_post(MDOC_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
}
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 47493dd4..69b6f77c 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -363,7 +363,6 @@ rew_alt(int tok)
default:
return(tok);
}
- /* NOTREACHED */
}
static void
diff --git a/mdoc_term.c b/mdoc_term.c
index ff53bbba..768f7f74 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1721,7 +1721,6 @@ termp_xx_pre(DECL_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
term_word(p, pp);
@@ -1918,7 +1917,6 @@ termp_quote_pre(DECL_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
p->flags |= TERMP_NOSPACE;
@@ -1989,7 +1987,6 @@ termp_quote_post(DECL_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
}
@@ -2218,7 +2215,6 @@ termp_bk_pre(DECL_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
return(1);
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 426332c2..70fb6f1d 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -657,7 +657,6 @@ pre_bd(PRE_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
if (DISP__NONE == dt)
continue;
@@ -1038,7 +1037,6 @@ post_defaults(POST_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
mdoc->last = nn;
}
@@ -2088,7 +2086,6 @@ pre_literal(PRE_ARGS)
break;
default:
abort();
- /* NOTREACHED */
}
}
diff --git a/out.c b/out.c
index d22b96ad..200ea1a1 100644
--- a/out.c
+++ b/out.c
@@ -262,7 +262,6 @@ tblcalc_data(struct rofftbl *tbl, struct roffcol *col,
break;
default:
abort();
- /* NOTREACHED */
}
}
diff --git a/roff.c b/roff.c
index 0da8b963..e5aa011f 100644
--- a/roff.c
+++ b/roff.c
@@ -1022,7 +1022,6 @@ roff_node_append(struct roff_man *man, struct roff_node *n)
break;
default:
abort();
- /* NOTREACHED */
}
n->parent->nchild++;
n->parent->last = n;
@@ -2060,12 +2059,12 @@ roff_getnum(const char *v, int *pos, int *res, int flags)
scaled = *res * 240 / 2.54;
break;
case 'v':
- /* FALLTROUGH */
+ /* FALLTHROUGH */
case 'P':
scaled = *res * 40;
break;
case 'm':
- /* FALLTROUGH */
+ /* FALLTHROUGH */
case 'n':
scaled = *res * 24;
break;
diff --git a/tbl_opts.c b/tbl_opts.c
index 45d87372..09cf771a 100644
--- a/tbl_opts.c
+++ b/tbl_opts.c
@@ -99,7 +99,6 @@ arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key)
break;
default:
abort();
- /* NOTREACHED */
}
if (len == 0)
diff --git a/tbl_term.c b/tbl_term.c
index a2a3996c..955e9903 100644
--- a/tbl_term.c
+++ b/tbl_term.c
@@ -303,7 +303,6 @@ tbl_data(struct termp *tp, const struct tbl_opts *opts,
break;
default:
abort();
- /* NOTREACHED */
}
}
diff --git a/term.c b/term.c
index 08a6aa3d..264f24ea 100644
--- a/term.c
+++ b/term.c
@@ -820,7 +820,6 @@ term_vspan(const struct termp *p, const struct roffsu *su)
break;
default:
abort();
- /* NOTREACHED */
}
ri = r > 0.0 ? r + 0.4995 : r - 0.4995;
return(ri < 66 ? ri : 1);
diff --git a/term_ascii.c b/term_ascii.c
index 596c1142..b715c17f 100644
--- a/term_ascii.c
+++ b/term_ascii.c
@@ -260,7 +260,6 @@ ascii_hspan(const struct termp *p, const struct roffsu *su)
break;
default:
abort();
- /* NOTREACHED */
}
return(r > 0.0 ? r + 0.01 : r - 0.01);
}
diff --git a/tree.c b/tree.c
index 4b20d048..48be1f2b 100644
--- a/tree.c
+++ b/tree.c
@@ -98,7 +98,6 @@ print_mdoc(const struct roff_node *n, int indent)
break;
default:
abort();
- /* NOTREACHED */
}
switch (n->type) {
@@ -138,7 +137,6 @@ print_mdoc(const struct roff_node *n, int indent)
break;
default:
abort();
- /* NOTREACHED */
}
if (n->span) {
@@ -212,7 +210,6 @@ print_man(const struct roff_node *n, int indent)
break;
default:
abort();
- /* NOTREACHED */
}
switch (n->type) {
@@ -238,7 +235,6 @@ print_man(const struct roff_node *n, int indent)
break;
default:
abort();
- /* NOTREACHED */
}
if (n->span) {