Core: Fix 4 warnings / SQL: Rename two SQL files

This commit is contained in:
Nay
2012-08-20 21:54:36 +01:00
parent 16a0813c1b
commit 9e0907874e
4 changed files with 5 additions and 5 deletions
@@ -574,7 +574,7 @@ void BattlefieldWG::OnCreatureCreate(Creature* creature)
} }
} }
void BattlefieldWG::OnCreatureRemove(Creature* creature) void BattlefieldWG::OnCreatureRemove(Creature* /*creature*/)
{ {
/* possibly can be used later /* possibly can be used later
if (IsWarTime()) if (IsWarTime())
@@ -896,7 +896,7 @@ void BattlefieldWG::SendInitWorldStatesToAll()
player->GetSession()->SendPacket(&data); player->GetSession()->SendPacket(&data);
} }
void BattlefieldWG::BrokenWallOrTower(TeamId team) void BattlefieldWG::BrokenWallOrTower(TeamId /*team*/)
{ {
// might be some use for this in the future. old code commented out below. KL // might be some use for this in the future. old code commented out below. KL
/* if (team == GetDefenderTeam()) /* if (team == GetDefenderTeam())
+3 -3
View File
@@ -24,7 +24,7 @@ public:
void close(); void close();
void GetFileListTo(vector<string>& filelist) { void GetFileListTo(vector<string>& filelist) {
uint32 filenum; uint32_t filenum;
if(libmpq__file_number(mpq_a, "(listfile)", &filenum)) return; if(libmpq__file_number(mpq_a, "(listfile)", &filenum)) return;
libmpq__off_t size, transferred; libmpq__off_t size, transferred;
libmpq__file_unpacked_size(mpq_a, filenum, &size); libmpq__file_unpacked_size(mpq_a, filenum, &size);
@@ -60,8 +60,8 @@ class MPQFile
libmpq__off_t pointer,size; libmpq__off_t pointer,size;
// disable copying // disable copying
MPQFile(const MPQFile &f) {} MPQFile(const MPQFile& /*f*/) {}
void operator=(const MPQFile &f) {} void operator=(const MPQFile& /*f*/) {}
public: public:
MPQFile(const char* filename); // filenames are not case sensitive MPQFile(const char* filename); // filenames are not case sensitive