Skip to content

Commit

Permalink
driver: make luaL_pushnull() non-static
Browse files Browse the repository at this point in the history
Tarantool will make this method public in:
tarantool/tarantool@878c0d0

This patch fixes compilation error:

./mysql/driver.c:53:1: error: static declaration of ‘luaL_pushnull’ follows non-static declaration
   53 | luaL_pushnull(struct lua_State *L)
      | ^~~~~~~~~~~~~
  • Loading branch information
Gumix authored and DifferentialOrange committed Jul 12, 2024
1 parent aeb915d commit 154fa91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static int luaL_nil_ref = LUA_REFNIL;
* Can be used as replacement of nil in Lua tables.
* @param L stack
*/
static inline void
void
luaL_pushnull(struct lua_State *L)
{
lua_rawgeti(L, LUA_REGISTRYINDEX, luaL_nil_ref);
Expand Down

0 comments on commit 154fa91

Please sign in to comment.