aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2017-09-04 20:10:24 +0200
committerGitHub <noreply@github.com>2017-09-04 20:10:24 +0200
commit10370263952bb68315206916d94df574991a1d5d (patch)
tree8e0ae13659b8f058fbdabfcef0219df48fd40f70
parent6f3deeaa6a4743e1f5148c613addb3f94a22d2df (diff)
parenta3f456ad999c7ec317fdf71d61cbcd80db74d0fe (diff)
downloadlua-compat-5.3-10370263952bb68315206916d94df574991a1d5d.tar.gz
lua-compat-5.3-10370263952bb68315206916d94df574991a1d5d.tar.bz2
lua-compat-5.3-10370263952bb68315206916d94df574991a1d5d.zip
Merge pull request #24 from daurnimator/implicit-fallthrough
Use FALLTHROUGH annotation to fix -Wimplicit-fallthrough warning
-rw-r--r--c-api/compat-5.3.c2
1 files changed, 1 insertions, 1 deletions
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) {
110 case LUA_TUSERDATA: 110 case LUA_TUSERDATA:
111 if (luaL_callmeta(L, i, "__len")) 111 if (luaL_callmeta(L, i, "__len"))
112 break; 112 break;
113 /* maybe fall through */ 113 /* FALLTHROUGH */
114 default: 114 default:
115 luaL_error(L, "attempt to get length of a %s value", 115 luaL_error(L, "attempt to get length of a %s value",
116 lua_typename(L, lua_type(L, i))); 116 lua_typename(L, lua_type(L, i)));