From 0864edea54c709c00948ac335430280f4a5376c9 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Thu, 9 Feb 2012 23:07:58 +0100 Subject: MT32: Fix warning The workaround for the unused parameter warning caused a warning: parameter 'patchNum' set but not used --- audio/softsynth/mt32/Part.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'audio/softsynth') 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]); -- cgit v1.2.3