浏览代码

detail (removed unreacheable 'break')

Roberto Ierusalimschy 9 年之前
父节点
当前提交
880df57e52
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lstrlib.c

+ 2 - 2
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
 ** Standard library for string operations and pattern-matching
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -1390,7 +1390,7 @@ static int str_packsize (lua_State *L) {
       case Kstring:  /* strings with length count */
       case Kstring:  /* strings with length count */
       case Kzstr:    /* zero-terminated string */
       case Kzstr:    /* zero-terminated string */
         luaL_argerror(L, 1, "variable-length format");
         luaL_argerror(L, 1, "variable-length format");
-        break;
+        /* call never return, but to avoid warnings: *//* FALLTHROUGH */
       default:  break;
       default:  break;
     }
     }
   }
   }