aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit2b458c52cbc836a7fa3ad35cfb84f021fd6356cf (patch)
treee37f40221b991617a4694a65cdef31c0cccaa65c /term_ascii.c
parent00a0a38311b7b5c611e86c220c343a16808bcca4 (diff)
downloadmandoc-2b458c52cbc836a7fa3ad35cfb84f021fd6356cf.tar.gz
mandoc-2b458c52cbc836a7fa3ad35cfb84f021fd6356cf.tar.zst
mandoc-2b458c52cbc836a7fa3ad35cfb84f021fd6356cf.zip
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/term_ascii.c b/term_ascii.c
index a1b445d2..c4428073 100644
--- a/term_ascii.c
+++ b/term_ascii.c
@@ -1,4 +1,4 @@
-/* $Id: term_ascii.c,v 1.29 2014/08/13 20:34:29 kristaps Exp $ */
+/* $Id: term_ascii.c,v 1.30 2014/08/14 22:33:10 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);