From 8d2ee3c1fc6abed7938ba2072f9d8ff95d959f95 Mon Sep 17 00:00:00 2001 From: Gregory A Lundberg Date: Thu, 2 Nov 2017 10:11:43 -0500 Subject: [PATCH] Fix missing 'static' Actual warning was missing declaration. All other functions being exposed to Lua, here, are static so make this one static also. --- src/scripting/lua_kernel_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/lua_kernel_base.cpp b/src/scripting/lua_kernel_base.cpp index 62e8d042b1b19..08507dcc9fd29 100644 --- a/src/scripting/lua_kernel_base.cpp +++ b/src/scripting/lua_kernel_base.cpp @@ -260,7 +260,7 @@ static int intf_wml_matches_filter(lua_State* L) * Arg 1: (optional) Logger * Arg 2: Message */ -int intf_log(lua_State *L) { +static int intf_log(lua_State *L) { const std::string& logger = lua_isstring(L, 2) ? luaL_checkstring(L, 1) : ""; std::string msg = lua_isstring(L, 2) ? luaL_checkstring(L, 2) : luaL_checkstring(L, 1); if(msg.empty() || msg[msg.size() - 1] != '\n') {