diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-30 12:42:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-30 12:42:59 -0300 |
commit | 3a91274547051935f92a9a51e1fad276810c73a0 (patch) | |
tree | dcf52962aa63919167f0d3b140c89904dfd05322 /ltm.c | |
parent | f2a813ae108a04e7de0478bd3c3ebf332268b043 (diff) | |
download | lua-3a91274547051935f92a9a51e1fad276810c73a0.tar.gz lua-3a91274547051935f92a9a51e1fad276810c73a0.tar.bz2 lua-3a91274547051935f92a9a51e1fad276810c73a0.zip |
details (avoid 'lint' warnings)
Diffstat (limited to 'ltm.c')
-rw-r--r-- | ltm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 2.32 2014/11/10 17:24:43 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 2.33 2014/11/21 12:15:57 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -117,6 +117,7 @@ void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, | |||
117 | switch (event) { | 117 | switch (event) { |
118 | case TM_CONCAT: | 118 | case TM_CONCAT: |
119 | luaG_concaterror(L, p1, p2); | 119 | luaG_concaterror(L, p1, p2); |
120 | /* call never returns, but to avoid warnings: *//* FALLTHROUGH */ | ||
120 | case TM_BAND: case TM_BOR: case TM_BXOR: | 121 | case TM_BAND: case TM_BOR: case TM_BXOR: |
121 | case TM_SHL: case TM_SHR: case TM_BNOT: { | 122 | case TM_SHL: case TM_SHR: case TM_BNOT: { |
122 | lua_Number dummy; | 123 | lua_Number dummy; |
@@ -124,8 +125,8 @@ void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, | |||
124 | luaG_tointerror(L, p1, p2); | 125 | luaG_tointerror(L, p1, p2); |
125 | else | 126 | else |
126 | luaG_opinterror(L, p1, p2, "perform bitwise operation on"); | 127 | luaG_opinterror(L, p1, p2, "perform bitwise operation on"); |
127 | /* else go through */ | ||
128 | } | 128 | } |
129 | /* calls never return, but to avoid warnings: *//* FALLTHROUGH */ | ||
129 | default: | 130 | default: |
130 | luaG_opinterror(L, p1, p2, "perform arithmetic on"); | 131 | luaG_opinterror(L, p1, p2, "perform arithmetic on"); |
131 | } | 132 | } |