* mdocml: Some compilers apparently worry that abort() might return and
@ 2014-08-14 22:33 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-08-14 22:33 UTC (permalink / raw)
To: source
Log Message:
-----------
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>.
Modified Files:
--------------
mdocml:
term_ascii.c
Revision Data
-------------
Index: term_ascii.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/term_ascii.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -Lterm_ascii.c -Lterm_ascii.c -u -p -r1.29 -r1.30
--- term_ascii.c
+++ term_ascii.c
@@ -260,12 +260,13 @@ ascii_hspan(const struct termp *p, const
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);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-14 22:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-14 22:33 mdocml: Some compilers apparently worry that abort() might return and schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).