Core: Remove "may be used uninitialized in this function", "unused parameter ‘xxx’" and "'xxx' defined but not used" warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-21 23:08:54 +02:00
parent a136403dee
commit 572f7bbd1d
20 changed files with 37 additions and 31 deletions
+7 -7
View File
@@ -1200,14 +1200,14 @@ valid examples:
std::istringstream reader(message);
char buffer[256];
uint32 color;
uint32 color = 0;
ItemPrototype const* linkedItem;
Quest const* linkedQuest;
SpellEntry const *linkedSpell;
AchievementEntry const* linkedAchievement;
ItemRandomPropertiesEntry const* itemProperty;
ItemRandomSuffixEntry const* itemSuffix;
ItemPrototype const* linkedItem = NULL;
Quest const* linkedQuest = NULL;
SpellEntry const *linkedSpell = NULL;
AchievementEntry const* linkedAchievement = NULL;
ItemRandomPropertiesEntry const* itemProperty = NULL;
ItemRandomSuffixEntry const* itemSuffix = NULL;
while (!reader.eof())
{
+3 -3
View File
@@ -1114,7 +1114,7 @@ bool ChatHandler::HandleReloadAuctionsCommand(const char * /*args*/)
return true;
}
bool ChatHandler::HandleReloadConditions(const char* args)
bool ChatHandler::HandleReloadConditions(const char* /*args*/)
{
sLog.outString("Re-Loading Conditions...");
sConditionMgr.LoadConditions(true);
@@ -3536,8 +3536,8 @@ bool ChatHandler::HandleLookupFactionCommand(const char *args)
if (repState) // and then target != NULL also
{
ReputationRank rank = target->GetReputationMgr().GetRank(factionEntry);
std::string rankName = GetTrinityString(ReputationRankStrIndex[rank]);
uint32 index = target->GetReputationMgr().GetReputationRankStrIndex(factionEntry);
std::string rankName = GetTrinityString(index);
ss << " " << rankName << "|h|r (" << target->GetReputationMgr().GetReputation(factionEntry) << ")";