diff --git a/src/LuaEngine/GlobalMethods.h b/src/LuaEngine/GlobalMethods.h index 951a0c0..fde229b 100644 --- a/src/LuaEngine/GlobalMethods.h +++ b/src/LuaEngine/GlobalMethods.h @@ -1229,7 +1229,7 @@ namespace LuaGlobalFunctions { const char* command = Eluna::CHECKVAL(L, 1); #if defined TRINITY || AZEROTHCORE - eWorld->QueueCliCommand(new CliCommandHolder(nullptr, command, [](void* obj, std::string_view view) + eWorld->QueueCliCommand(new CliCommandHolder(nullptr, command, [](void*, std::string_view view) { std::string str = { view.begin(), view.end() }; str.erase(std::find_if(str.rbegin(), str.rend(), [](unsigned char ch) { return !std::isspace(ch); }).base(), str.end()); // Remove trailing spaces and line breaks