[Scummvm-cvs-logs] scummvm master -> d654057a98290dc6a53c1b1d87006e20222f65ce

digitall dgturner at iee.org
Fri Nov 23 20:03:26 CET 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d654057a98 AUDIO: Fix spurious compiler warnings about use-before-set variable.


Commit: d654057a98290dc6a53c1b1d87006e20222f65ce
    https://github.com/scummvm/scummvm/commit/d654057a98290dc6a53c1b1d87006e20222f65ce
Author: D G Turner (digitall at scummvm.org)
Date: 2012-11-23T11:01:38-08:00

Commit Message:
AUDIO: Fix spurious compiler warnings about use-before-set variable.

Changed paths:
    audio/softsynth/adlib.cpp



diff --git a/audio/softsynth/adlib.cpp b/audio/softsynth/adlib.cpp
index 6000a41..657eb78 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;






More information about the Scummvm-git-logs mailing list