Fixed all unused-parameters warnings

issue #121

used clang-tidy to achieve this
This commit is contained in:
Yehonal
2017-09-18 14:23:26 +02:00
parent aa87ec685b
commit 2b2e299ccc
229 changed files with 643 additions and 643 deletions

View File

@@ -34,7 +34,7 @@ public:
return commandTable;
}
static bool HandleSpectatorCommand(ChatHandler* handler, char const* args)
static bool HandleSpectatorCommand(ChatHandler* handler, char const* /*args*/)
{
handler->PSendSysMessage("Incorrect syntax.");
handler->PSendSysMessage("Command has subcommands:");
@@ -50,7 +50,7 @@ public:
return true;
}
static bool HandleSpectatorResetCommand(ChatHandler* handler, char const* args)
static bool HandleSpectatorResetCommand(ChatHandler* handler, char const* /*args*/)
{
Player* p = handler->GetSession()->GetPlayer();
if (!p->IsSpectator())
@@ -59,7 +59,7 @@ public:
return true;
}
static bool HandleSpectatorLeaveCommand(ChatHandler* handler, char const* args)
static bool HandleSpectatorLeaveCommand(ChatHandler* handler, char const* /*args*/)
{
Player* player = handler->GetSession()->GetPlayer();
if (!player->IsSpectator() || !player->FindMap() || !player->FindMap()->IsBattleArena())