diff options
author | D G Turner | 2019-12-12 17:31:01 +0000 |
---|---|---|
committer | D G Turner | 2019-12-12 17:31:01 +0000 |
commit | 799a088b6edb7772c01d60ebc3e6160bb26ce8fc (patch) | |
tree | c3586556fd1efe38db42629427c718af16ca41d7 /engines/gob/sound | |
parent | f62dc99600da83128b7ee1c08bfb09ebc6539173 (diff) | |
download | scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.gz scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.bz2 scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.zip |
GOB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/gob/sound')
-rw-r--r-- | engines/gob/sound/bgatmosphere.cpp | 1 | ||||
-rw-r--r-- | engines/gob/sound/sounddesc.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/sound/bgatmosphere.cpp b/engines/gob/sound/bgatmosphere.cpp index c7be1be96a..dffc0f75b1 100644 --- a/engines/gob/sound/bgatmosphere.cpp +++ b/engines/gob/sound/bgatmosphere.cpp @@ -102,6 +102,7 @@ void BackgroundAtmosphere::getNextQueuePos() { switch (_playMode) { case Sound::kPlayModeLinear: + default: _queuePos = (_queuePos + 1) % _queue.size(); break; diff --git a/engines/gob/sound/sounddesc.cpp b/engines/gob/sound/sounddesc.cpp index d56387078a..5997c994b9 100644 --- a/engines/gob/sound/sounddesc.cpp +++ b/engines/gob/sound/sounddesc.cpp @@ -96,6 +96,8 @@ bool SoundDesc::load(SoundType type, byte *data, uint32 dSize) { return loadSND(data, dSize); case SOUND_WAV: return loadWAV(data, dSize); + default: + break; } return false; |