From 5ae8bd5389562e74de30aac044ab33ec90e930a5 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Tue, 11 Jul 2017 00:49:25 +0300 Subject: 9165 libshell: this statement may fall through Reviewed by: C Fraire Reviewed by: Andy Fiddaman Approved by: Gordon Ross --- usr/src/lib/libshell/common/sh/macro.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr/src/lib/libshell/common/sh/macro.c') diff --git a/usr/src/lib/libshell/common/sh/macro.c b/usr/src/lib/libshell/common/sh/macro.c index 2af54f88f7..8e6d37fbb1 100644 --- a/usr/src/lib/libshell/common/sh/macro.c +++ b/usr/src/lib/libshell/common/sh/macro.c @@ -458,6 +458,7 @@ static void copyto(register Mac_t *mp,int endch, int newquote) case -1: /* illegal multi-byte char */ case 0: len = 1; + /* FALLTHROUGH */ case 1: n = state[*(unsigned char*)cp++]; break; @@ -600,6 +601,7 @@ static void copyto(register Mac_t *mp,int endch, int newquote) goto pattern; if(endch==RBRACE && *cp==LPAREN && mp->pattern && brace) goto pattern; + /* FALLTHROUGH */ case S_EOF: if(c) { @@ -616,6 +618,7 @@ static void copyto(register Mac_t *mp,int endch, int newquote) case S_QUOTE: if(mp->lit || mp->arith) break; + /* FALLTHROUGH */ case S_LIT: if(mp->arith) { @@ -679,6 +682,7 @@ e_badsubscript,*cp); cp = first = fcseek(0); break; } + /* FALLTHROUGH */ case S_PAT: if(mp->pattern && !(mp->quote || mp->lit)) { -- cgit v1.2.3