aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2012-11-23 19:01:38 +0000
committerD G Turner2012-11-23 19:01:38 +0000
commitd654057a98290dc6a53c1b1d87006e20222f65ce (patch)
treed2fd8f6ff89c0d1235a5ce3f16473dde554cb6c4
parent8a8ab23c03e2f69bf1107b009f5a9bee6035e81f (diff)
downloadscummvm-rg350-d654057a98290dc6a53c1b1d87006e20222f65ce.tar.gz
scummvm-rg350-d654057a98290dc6a53c1b1d87006e20222f65ce.tar.bz2
scummvm-rg350-d654057a98290dc6a53c1b1d87006e20222f65ce.zip
AUDIO: Fix spurious compiler warnings about use-before-set variable.
-rw-r--r--audio/softsynth/adlib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/softsynth/adlib.cpp b/audio/softsynth/adlib.cpp
index 6000a41a72..657eb7846f 100644
--- a/audio/softsynth/adlib.cpp
+++ b/audio/softsynth/adlib.cpp
@@ -1988,7 +1988,7 @@ void MidiDriver_ADLIB::mcKeyOn(AdLibVoice *voice, const AdLibInstrument *instr,
AdLibPart *part = voice->_part;
byte vol1, vol2;
#ifdef ENABLE_OPL3
- byte secVol1, secVol2;
+ byte secVol1 = 0, secVol2 = 0;
#endif
voice->_twoChan = instr->feedback & 1;