From ce3e6d7fd850be428eb4ded4668920b57e61dc82 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sun, 18 Jan 2004 20:11:52 +0000 Subject: fix warning svn-id: r12498 --- sky/music/adlibchannel.cpp | 2 +- sky/music/gmchannel.cpp | 2 +- sword2/icons.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sky/music/adlibchannel.cpp b/sky/music/adlibchannel.cpp index 03dd2dae8d..307ca72f9c 100644 --- a/sky/music/adlibchannel.cpp +++ b/sky/music/adlibchannel.cpp @@ -109,7 +109,7 @@ void AdlibChannel::stopNote(void) { int32 AdlibChannel::getNextEventTime(void) { int32 retV = 0; - uint8 cnt, lVal; + uint8 cnt, lVal = 0; for (cnt = 0; cnt < 4; cnt++) { lVal = _musicData[_channelData.eventDataPtr]; _channelData.eventDataPtr++; diff --git a/sky/music/gmchannel.cpp b/sky/music/gmchannel.cpp index 1731a53780..4737cedf34 100644 --- a/sky/music/gmchannel.cpp +++ b/sky/music/gmchannel.cpp @@ -65,7 +65,7 @@ void GmChannel::stopNote(void) { int32 GmChannel::getNextEventTime(void) { int32 retV = 0; - uint8 cnt, lVal; + uint8 cnt, lVal = 0; for (cnt = 0; cnt < 4; cnt++) { lVal = _musicData[_channelData.eventDataPtr]; _channelData.eventDataPtr++; diff --git a/sword2/icons.cpp b/sword2/icons.cpp index 1bcb316fe9..9d82d43c66 100644 --- a/sword2/icons.cpp +++ b/sword2/icons.cpp @@ -65,7 +65,7 @@ void Sword2Engine::buildMenu(void) { bool icon_coloured; uint8 *icon; uint8 *head; - uint32 res; + uint32 res = 0; // reset temp list which will be totally rebuilt _totalTemp = 0; -- cgit v1.2.3