summaryrefslogtreecommitdiff
path: root/libs/ardour/lua_api.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-10-26 14:30:26 +0200
committerRobin Gareus <robin@gareus.org>2018-10-26 14:53:44 +0200
commitc98fc1099d151f9d16a2dc8d2b59d16ea539bb21 (patch)
treea711dfd008aba013520dce2c57ba2dbef08e40a2 /libs/ardour/lua_api.cc
parent08d205c533fa3380a97d646b3a50c9f9426f3a80 (diff)
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
Diffstat (limited to 'libs/ardour/lua_api.cc')
-rw-r--r--libs/ardour/lua_api.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/lua_api.cc b/libs/ardour/lua_api.cc
index 7332f62fc9..d4e2bb23b4 100644
--- a/libs/ardour/lua_api.cc
+++ b/libs/ardour/lua_api.cc
@@ -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);