aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-01-18 20:11:52 +0000
committerPaweł Kołodziejski2004-01-18 20:11:52 +0000
commitce3e6d7fd850be428eb4ded4668920b57e61dc82 (patch)
tree964634630391ed3312ebb5373d7f5cceb71bdb7c
parent4ff60e231d238dcfa27f1a4a375f5ccdb000ad50 (diff)
downloadscummvm-rg350-ce3e6d7fd850be428eb4ded4668920b57e61dc82.tar.gz
scummvm-rg350-ce3e6d7fd850be428eb4ded4668920b57e61dc82.tar.bz2
scummvm-rg350-ce3e6d7fd850be428eb4ded4668920b57e61dc82.zip
fix warning
svn-id: r12498
-rw-r--r--sky/music/adlibchannel.cpp2
-rw-r--r--sky/music/gmchannel.cpp2
-rw-r--r--sword2/icons.cpp2
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;