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:
@@ -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())
|
||||
{
|
||||
|
||||
@@ -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) << ")";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user