diff options
author | Toomas Soome <tsoome@me.com> | 2017-07-11 00:49:25 +0300 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2018-02-26 20:42:03 -0500 |
commit | 5ae8bd5389562e74de30aac044ab33ec90e930a5 (patch) | |
tree | f43fdcf10c56fd4bc49ca33625a6c580587047f8 /usr/src/lib/libshell/common/sh/macro.c | |
parent | 2a898b17c54fe53254413d8d4cac0de440289b59 (diff) | |
download | illumos-gate-5ae8bd5389562e74de30aac044ab33ec90e930a5.tar.gz |
9165 libshell: this statement may fall through
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/lib/libshell/common/sh/macro.c')
-rw-r--r-- | usr/src/lib/libshell/common/sh/macro.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)) { |