From 2b458c52cbc836a7fa3ad35cfb84f021fd6356cf Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 14 Aug 2014 22:33:10 +0000 Subject: 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 . --- term_ascii.c | 5 +++-- 1 file 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 * Copyright (c) 2014 Ingo Schwarze @@ -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); -- cgit v1.2.3-56-ge451