diff options
author | D G Turner | 2019-11-28 14:38:43 +0000 |
---|---|---|
committer | D G Turner | 2019-11-28 14:38:43 +0000 |
commit | 3959797b85430b5ae0e2a9a9e182582bdf889723 (patch) | |
tree | 1a6cb0ecd64e4fc51426d5833136864cda622b47 /audio | |
parent | 8e2f48636a4dbb926c12e49c6288216f93542015 (diff) | |
download | scummvm-rg350-3959797b85430b5ae0e2a9a9e182582bdf889723.tar.gz scummvm-rg350-3959797b85430b5ae0e2a9a9e182582bdf889723.tar.bz2 scummvm-rg350-3959797b85430b5ae0e2a9a9e182582bdf889723.zip |
AUDIO: Fix Remaining Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/decoders/qdm2.cpp | 3 | ||||
-rw-r--r-- | audio/mods/maxtrax.cpp | 7 | ||||
-rw-r--r-- | audio/mods/tfmx.cpp | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/audio/decoders/qdm2.cpp b/audio/decoders/qdm2.cpp index ed1c014a34..a9cf30e9ef 100644 --- a/audio/decoders/qdm2.cpp +++ b/audio/decoders/qdm2.cpp @@ -1552,6 +1552,9 @@ void QDM2Stream::fill_coding_method_array(sb_int8_array tone_level_idx, sb_int8_ case 4: if (comp < 16) comp = 16; + break; + default: + break; } if (comp <= 5) tmp = 0; diff --git a/audio/mods/maxtrax.cpp b/audio/mods/maxtrax.cpp index b907357c70..4295b57aa7 100644 --- a/audio/mods/maxtrax.cpp +++ b/audio/mods/maxtrax.cpp @@ -236,6 +236,8 @@ void MaxTrax::interrupt() { } } break; + default: + break; } break; @@ -327,6 +329,9 @@ endOfEventLoop: } voice.stopEventTime = -1; break; + + default: + break; } // Process Envelope @@ -501,6 +506,8 @@ allNotesOff: killVoice((byte)i); } break; + default: + break; } } diff --git a/audio/mods/tfmx.cpp b/audio/mods/tfmx.cpp index 8d31faa104..a2a474ae65 100644 --- a/audio/mods/tfmx.cpp +++ b/audio/mods/tfmx.cpp @@ -604,6 +604,9 @@ bool Tfmx::patternRun(PatternContext &pattern) { case 15: // NOP continue; + + default: + break; } } } @@ -732,6 +735,9 @@ void Tfmx::noteCommand(const uint8 note, const uint8 param1, const uint8 param2, channel.envCount = channel.envSkip = (param2 >> 4) + 1; channel.envEndVolume = param3; break; + + default: + break; } } |