Skip to content

Commit

Permalink
Fix missing 'static'
Browse files Browse the repository at this point in the history
Actual warning was missing declaration. All other functions being exposed to Lua, here, are static so make this one  static also.
  • Loading branch information
GregoryLundberg committed Nov 30, 2017
1 parent 00909ea commit 8d2ee3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/lua_kernel_base.cpp
Expand Up @@ -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') {
Expand Down

0 comments on commit 8d2ee3c

Please sign in to comment.