Fix missing 'static'

Actual warning was missing declaration. All other functions being exposed to Lua, here, are static so make this one  static also.
This commit is contained in:
Gregory A Lundberg 2017-11-02 10:11:43 -05:00
parent b42ca757da
commit 052afd4ce8

View file

@ -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') {