From a3f456ad999c7ec317fdf71d61cbcd80db74d0fe Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 3 Sep 2017 17:57:43 +1000 Subject: Use FALLTHROUGH annotation to fix -Wimplicit-fallthrough warning Using a form that passes -Wimplicit-fallthrough=4. See https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gcc/Warning-Options.html#index-Wimplicit-fallthrough --- c-api/compat-5.3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c-api/compat-5.3.c') diff --git a/c-api/compat-5.3.c b/c-api/compat-5.3.c index 883efb8..fab89c0 100644 --- a/c-api/compat-5.3.c +++ b/c-api/compat-5.3.c @@ -110,7 +110,7 @@ COMPAT53_API void lua_len (lua_State *L, int i) { case LUA_TUSERDATA: if (luaL_callmeta(L, i, "__len")) break; - /* maybe fall through */ + /* FALLTHROUGH */ default: luaL_error(L, "attempt to get length of a %s value", lua_typename(L, lua_type(L, i))); -- cgit v1.2.3-55-g6feb