diff options
author | Willem Jan Palenstijn | 2012-02-09 23:07:58 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2012-02-09 23:07:58 +0100 |
commit | 0864edea54c709c00948ac335430280f4a5376c9 (patch) | |
tree | adca7c329641ba3f48780a83bc9e9197a4bcf921 /audio/softsynth | |
parent | 4b2938c9d0691afb3d718998b185a7669050b267 (diff) | |
download | scummvm-rg350-0864edea54c709c00948ac335430280f4a5376c9.tar.gz scummvm-rg350-0864edea54c709c00948ac335430280f4a5376c9.tar.bz2 scummvm-rg350-0864edea54c709c00948ac335430280f4a5376c9.zip |
MT32: Fix warning
The workaround for the unused parameter warning caused a warning:
parameter 'patchNum' set but not used
Diffstat (limited to 'audio/softsynth')
-rw-r--r-- | audio/softsynth/mt32/Part.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/softsynth/mt32/Part.cpp b/audio/softsynth/mt32/Part.cpp index 8c646b2b49..c9bd86b54a 100644 --- a/audio/softsynth/mt32/Part.cpp +++ b/audio/softsynth/mt32/Part.cpp @@ -220,13 +220,13 @@ unsigned int Part::getAbsTimbreNum() const { return (patchTemp->patch.timbreGroup * 64) + patchTemp->patch.timbreNum; } -void RhythmPart::setProgram(unsigned int patchNum) { #if MT32EMU_MONITOR_MIDI > 0 +void RhythmPart::setProgram(unsigned int patchNum) { synth->printDebug("%s: Attempt to set program (%d) on rhythm is invalid", name, patchNum); +} #else - patchNum = 0; // Just to avoid unused variable warning +void RhythmPart::setProgram(unsigned int) { } #endif -} void Part::setProgram(unsigned int patchNum) { setPatch(&synth->mt32ram.patches[patchNum]); |