diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-09-26 00:54:03 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-09-26 00:54:03 +0000 |
commit | cd4599580495e7b8d149487099c19840add8d355 (patch) | |
tree | 4f7005815ebe5dc98b126fe472130e0d8da88e96 | |
parent | 15a545d1196bd2454c341893c1f5150bfff17fd2 (diff) | |
download | mandoc-cd4599580495e7b8d149487099c19840add8d355.tar.gz |
/* NOTREACHED */ after abort() is silly, delete it
-rw-r--r-- | html.c | 1 | ||||
-rw-r--r-- | man_html.c | 1 | ||||
-rw-r--r-- | man_macro.c | 1 | ||||
-rw-r--r-- | mdoc_html.c | 5 | ||||
-rw-r--r-- | mdoc_macro.c | 1 | ||||
-rw-r--r-- | mdoc_term.c | 4 | ||||
-rw-r--r-- | mdoc_validate.c | 3 | ||||
-rw-r--r-- | out.c | 1 | ||||
-rw-r--r-- | roff.c | 5 | ||||
-rw-r--r-- | tbl_opts.c | 1 | ||||
-rw-r--r-- | tbl_term.c | 1 | ||||
-rw-r--r-- | term.c | 1 | ||||
-rw-r--r-- | term_ascii.c | 1 | ||||
-rw-r--r-- | tree.c | 4 |
14 files changed, 2 insertions, 28 deletions
@@ -224,7 +224,6 @@ print_metaf(struct html *h, enum mandoc_esc deco) break; default: abort(); - /* NOTREACHED */ } if (h->metaf) { @@ -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 */ } } @@ -262,7 +262,6 @@ tblcalc_data(struct rofftbl *tbl, struct roffcol *col, break; default: abort(); - /* NOTREACHED */ } } @@ -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; @@ -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) @@ -303,7 +303,6 @@ tbl_data(struct termp *tp, const struct tbl_opts *opts, break; default: abort(); - /* NOTREACHED */ } } @@ -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); } @@ -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) { |