From e0d5c1426c4ecad8832847e8a69b65ea6fc100fc Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 18 Sep 2019 17:27:09 +0200 Subject: 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 --- tools/luadevel/devel.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') 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); -- cgit v1.2.3