Fix some Wimplicit-fallthrough

A "fall through" comment is most portable way to indicate
"no break, fallthru" cases.

 * __attribute__ ((fallthrough))  // is not portable
 * [[fallthrough]]; // is C++17
This commit is contained in:
Robin Gareus
2018-10-26 14:30:26 +02:00
parent 08d205c533
commit c98fc1099d
5 changed files with 15 additions and 10 deletions

View File

@@ -681,10 +681,11 @@ LuaTableRef::set (lua_State* L)
}
// invalid userdata -- fall through
}
// no break
/* fall through */
case LUA_TFUNCTION: // no support -- we could... string.format("%q", string.dump(value, true))
/* fall through */
case LUA_TTABLE: // no nested tables, sorry.
case LUA_TNIL: // fallthrough
case LUA_TNIL:
default:
// invalid value
lua_pop (L, 2);