NO-OP: fix some Wimplicit-fallthrough

gcc can recognize various regexps in comments. Since C++17 provides
[[fallthrough]], using /* fallthrough */ consistently seems
appropriate until we switch to C++17.

see also https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
This commit is contained in:
Robin Gareus 2019-09-18 17:27:09 +02:00
parent 37194ec805
commit e0d5c1426c
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
15 changed files with 37 additions and 23 deletions

View file

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