Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2018 00:47:39 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329771 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua
Message-ID:  <201802220047.w1M0ldWO016849@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Feb 22 00:47:38 2018
New Revision: 329771
URL: https://svnweb.freebsd.org/changeset/base/329771

Log:
  MFV r329770: 9035 zfs: this statement may fall through
  
  illumos/illumos-gate@46ac8fdfc5a1f9d8240c79a6ae5b2889cbe83553
  
  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>
  Author: Toomas Soome <tsoome@me.com>

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lgc.c
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/llex.c
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/ltable.c
Directory Properties:
  head/sys/cddl/contrib/opensolaris/   (props changed)

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lgc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lgc.c	Thu Feb 22 00:46:24 2018	(r329770)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lgc.c	Thu Feb 22 00:47:38 2018	(r329771)
@@ -677,7 +677,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;

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/llex.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/llex.c	Thu Feb 22 00:46:24 2018	(r329770)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/llex.c	Thu Feb 22 00:47:38 2018	(r329771)
@@ -475,6 +475,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);

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c	Thu Feb 22 00:46:24 2018	(r329770)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/lstrlib.c	Thu Feb 22 00:47:38 2018	(r329771)
@@ -519,7 +519,7 @@ static const char *match (MatchState *ms, const char *
             }
             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;

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/ltable.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/ltable.c	Thu Feb 22 00:46:24 2018	(r329770)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/ltable.c	Thu Feb 22 00:47:38 2018	(r329771)
@@ -490,6 +490,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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802220047.w1M0ldWO016849>