]> granicus.if.org Git - zfs/commitdiff
OpenZFS 9035 - zfs: this statement may fall through
authorToomas Soome <tsoome@me.com>
Sat, 1 Jul 2017 07:13:08 +0000 (10:13 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 21 Feb 2018 22:55:34 +0000 (14:55 -0800)
Authored by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/9035
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/46ac8fdfc5
Closes #7206

module/lua/lgc.c
module/lua/llex.c
module/lua/lstrlib.c
module/lua/ltable.c

index 9363112e4d207dfe5ef34349b363bfa5e2f2aa01..55feb24119d3959b26d853f0c18fcdd61c5b16a0 100644 (file)
@@ -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;
index e98d74320de170abb93861908a01861ed9d18c9b..8760155d05460468f23c65aae1f39f8b87af02ba 100644 (file)
@@ -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);
index cff5e894d472800c9e1ce1ffa93900fafe480ddf..24a3321bdefe0f1db09e6f120877a9b705e29ea0 100644 (file)
@@ -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;
index ea5a43c787ba526b107a7e8301de7a72a0490fdd..f60418721bef85becb61b7b8443d692627c7977c 100644 (file)
@@ -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 */