lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 880df57e525979c1372c2ef426319c0b01b9c9a4
parent 8949904783c2fdda1b6c6cec99637cf6d5471359
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu,  8 Oct 2015 12:52:39 -0300

detail (removed unreacheable 'break')

Diffstat:
Mlstrlib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lstrlib.c b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.233 2015/09/26 18:45:03 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.234 2015/09/28 18:05:01 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -1390,7 +1390,7 @@ static int str_packsize (lua_State *L) { case Kstring: /* strings with length count */ case Kzstr: /* zero-terminated string */ luaL_argerror(L, 1, "variable-length format"); - break; + /* call never return, but to avoid warnings: *//* FALLTHROUGH */ default: break; } }