summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-16 02:15:08 +0300
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2018-04-23 18:15:39 +0200
commitac2a9d89ccb0d7cde5ae809b68a5cfbaeefeef78 (patch)
tree9076e0d3e00366d4a73a1e916ffc4cbfc9b1c4fc
parent0834baa77af16c1d9672ea0d0650f877cc0b07d8 (diff)
downloadillumos-joyent-ac2a9d89ccb0d7cde5ae809b68a5cfbaeefeef78.tar.gz
9395 ed: this statement may fall through
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Reviewed by: C Fraire <cfraire@me.com> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
-rw-r--r--usr/src/cmd/ed/ed.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/cmd/ed/ed.c b/usr/src/cmd/ed/ed.c
index 6d3bd06e72..e8593cadbf 100644
--- a/usr/src/cmd/ed/ed.c
+++ b/usr/src/cmd/ed/ed.c
@@ -218,7 +218,7 @@ static int peekc;
static int io;
static void (*oldhup)(), (*oldintr)();
static void (*oldquit)(), (*oldpipe)();
-static void quit(int);
+static void quit(int) __NORETURN;
static int vflag = 1;
static int xflag;
static int xtflag;
@@ -579,6 +579,7 @@ swch:
case 'E':
fchange = 0;
c = 'e';
+ /* FALLTHROUGH */
case 'e':
fflg++;
setnoaddr();
@@ -678,6 +679,7 @@ swch:
case 'l':
listf++;
+ /* FALLTHROUGH */
case 'p':
newline();
print:
@@ -700,6 +702,7 @@ swch:
case 'Q':
fchange = 0;
+ /* FALLTHROUGH */
case 'q':
setnoaddr();
newline();
@@ -2859,8 +2862,8 @@ fspec(char line[], struct Fspec *f, int up)
TAB3))
f->Ffill = 1;
fsp++;
- continue;
}
+ continue;
case ' ': continue;