From 572f7bbd1dc67a6df6503ec4f828a64842d02cdc Mon Sep 17 00:00:00 2001 From: Spp Date: Sat, 21 Aug 2010 23:08:54 +0200 Subject: Core: Remove "may be used uninitialized in this function", "unused parameter ‘xxx’" and "'xxx' defined but not used" warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : trunk --- src/server/game/Chat/Chat.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/server/game/Chat/Chat.cpp') diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp index 9ee79281e5a..0fa2c91befb 100644 --- a/src/server/game/Chat/Chat.cpp +++ b/src/server/game/Chat/Chat.cpp @@ -1200,14 +1200,14 @@ valid examples: std::istringstream reader(message); char buffer[256]; - uint32 color; - - ItemPrototype const* linkedItem; - Quest const* linkedQuest; - SpellEntry const *linkedSpell; - AchievementEntry const* linkedAchievement; - ItemRandomPropertiesEntry const* itemProperty; - ItemRandomSuffixEntry const* itemSuffix; + uint32 color = 0; + + 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()) { -- cgit v1.2.3