diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-18 17:27:09 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-18 17:37:54 +0200 |
commit | e0d5c1426c4ecad8832847e8a69b65ea6fc100fc (patch) | |
tree | a1f7fe3bf4518ec61d501c9a3bf4b96e8704a390 /tools | |
parent | 37194ec805807143c2d9cb4a76ab7f258a3d0622 (diff) |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/luadevel/devel.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/luadevel/devel.cc b/tools/luadevel/devel.cc index 7d0deecbcf..92539881ec 100644 --- a/tools/luadevel/devel.cc +++ b/tools/luadevel/devel.cc @@ -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); |