diff options
author | Toomas Soome <[email protected]> | 2017-07-01 10:13:08 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-02-21 14:55:34 -0800 |
commit | 09302a4ca86df2a758c5b883e28b0952cfa31ff7 (patch) | |
tree | 2e5e5cd1a010923ff0f543566e362558c6e408b4 /module | |
parent | a2819058f5c2dc03f34114aa716ec5a5db7f07bd (diff) |
OpenZFS 9035 - zfs: this statement may fall through
Authored by: Toomas Soome <[email protected]>
Reviewed by: Yuri Pankov <[email protected]>
Reviewed by: Andy Fiddaman <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Approved by: Dan McDonald <[email protected]>
Ported-by: Giuseppe Di Natale <[email protected]>
OpenZFS-issue: https://www.illumos.org/issues/9035
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/46ac8fdfc5
Closes #7206
Diffstat (limited to 'module')
-rw-r--r-- | module/lua/lgc.c | 2 | ||||
-rw-r--r-- | module/lua/llex.c | 1 | ||||
-rw-r--r-- | module/lua/lstrlib.c | 2 | ||||
-rw-r--r-- | module/lua/ltable.c | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/module/lua/lgc.c b/module/lua/lgc.c index 9363112e4..55feb2411 100644 --- a/module/lua/lgc.c +++ b/module/lua/lgc.c @@ -676,7 +676,7 @@ static void freeobj (lua_State *L, GCObject *o) { case LUA_TUSERDATA: luaM_freemem(L, o, sizeudata(gco2u(o))); break; case LUA_TSHRSTR: G(L)->strt.nuse--; - /* go through */ + /* FALLTHROUGH */ case LUA_TLNGSTR: { luaM_freemem(L, o, sizestring(gco2ts(o))); break; diff --git a/module/lua/llex.c b/module/lua/llex.c index e98d74320..8760155d0 100644 --- a/module/lua/llex.c +++ b/module/lua/llex.c @@ -474,6 +474,7 @@ static int llex (LexState *ls, SemInfo *seminfo) { else if (!lisdigit(ls->current)) return '.'; /* else go through */ } + /* FALLTHROUGH */ case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { read_numeral(ls, seminfo); diff --git a/module/lua/lstrlib.c b/module/lua/lstrlib.c index cff5e894d..24a3321bd 100644 --- a/module/lua/lstrlib.c +++ b/module/lua/lstrlib.c @@ -501,7 +501,7 @@ static const char *match (MatchState *ms, const char *s, const char *p) { } case '+': /* 1 or more repetitions */ s++; /* 1 match already done */ - /* go through */ + /* FALLTHROUGH */ case '*': /* 0 or more repetitions */ s = max_expand(ms, s, p, ep); break; diff --git a/module/lua/ltable.c b/module/lua/ltable.c index ea5a43c78..f60418721 100644 --- a/module/lua/ltable.c +++ b/module/lua/ltable.c @@ -492,6 +492,7 @@ const TValue *luaH_get (Table *t, const TValue *key) { return luaH_getint(t, k); /* use specialized version */ /* else go through */ } + /* FALLTHROUGH */ default: { Node *n = mainposition(t, key); do { /* check whether `key' is somewhere in the chain */ |