summaryrefslogtreecommitdiffstats
path: root/term_ascii.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-14 22:33:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-14 22:33:10 +0000
commitb910bc285b99278f25295489ecd0cef5e7339f23 (patch)
tree9a8c186f151f0260df9ae9af913bd0f42d3285b2 /term_ascii.c
parent7d616b41cbfbd66b357aa999265e3ce1745753ee (diff)
downloadmandoc-b910bc285b99278f25295489ecd0cef5e7339f23.tar.gz
Some compilers apparently worry that abort() might return
and then throw a "may be used uninitialized" warning, so sprinkle some /* NOTREACHED */. No functional change. Noticed by Thomas Klausner <wiz at NetBSD dot org>.
Diffstat (limited to 'term_ascii.c')
-rw-r--r--term_ascii.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/term_ascii.c b/term_ascii.c
index 2c11a79c..b11e222e 100644
--- a/term_ascii.c
+++ b/term_ascii.c
@@ -260,12 +260,13 @@ ascii_hspan(const struct termp *p, const struct roffsu *su)
r = su->scale * 2.0 - 1.0;
break;
case SCALE_EN:
+ /* FALLTHROUGH */
case SCALE_EM:
r = su->scale;
break;
case SCALE_MAX:
abort();
- break;
+ /* NOTREACHED */
}
return(r);