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:
parent
b42ca757da
commit
052afd4ce8
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ static int intf_wml_matches_filter(lua_State* L)
|
||||||
* Arg 1: (optional) Logger
|
* Arg 1: (optional) Logger
|
||||||
* Arg 2: Message
|
* 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) : "";
|
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);
|
std::string msg = lua_isstring(L, 2) ? luaL_checkstring(L, 2) : luaL_checkstring(L, 1);
|
||||||
if(msg.empty() || msg[msg.size() - 1] != '\n') {
|
if(msg.empty() || msg[msg.size() - 1] != '\n') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue