explict return statement to suppress compiler warning

This commit is contained in:
Kezhu Wang
2013-11-14 01:27:10 +08:00
parent 3e2af60b34
commit 94c92bf16b

View File

@@ -433,6 +433,7 @@ pack_dict(lua_State *L, struct bson *b, bool isarray) {
break;
default:
luaL_error(L, "Invalid key type : %s", lua_typename(L, kt));
return;
}
append_one(b, L, key, sz);