Skip to content

Commit 94c92bf

Browse files
committed
explict return statement to suppress compiler warning
1 parent 3e2af60 commit 94c92bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lualib-src/lua-bson.c

+1
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ pack_dict(lua_State *L, struct bson *b, bool isarray) {
433433
break;
434434
default:
435435
luaL_error(L, "Invalid key type : %s", lua_typename(L, kt));
436+
return;
436437
}
437438

438439
append_one(b, L, key, sz);

0 commit comments

Comments
 (0)