diff options
author | D G Turner | 2019-10-04 03:51:40 +0100 |
---|---|---|
committer | D G Turner | 2019-10-04 03:51:40 +0100 |
commit | 4d911012e26eb9fc2098d586b0c2108667d3c2af (patch) | |
tree | 643ba8740a561be6c7a794978cc39bb1503f41db /audio | |
parent | 50b0d62334e42aa9030d36c3ba5385b3408c378e (diff) | |
download | scummvm-rg350-4d911012e26eb9fc2098d586b0c2108667d3c2af.tar.gz scummvm-rg350-4d911012e26eb9fc2098d586b0c2108667d3c2af.tar.bz2 scummvm-rg350-4d911012e26eb9fc2098d586b0c2108667d3c2af.zip |
MT32: Add Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/softsynth/mt32/Analog.cpp | 2 | ||||
-rw-r--r-- | audio/softsynth/mt32/BReverbModel.cpp | 2 | ||||
-rw-r--r-- | audio/softsynth/mt32/Synth.cpp | 2 | ||||
-rw-r--r-- | audio/softsynth/mt32/TVF.cpp | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/audio/softsynth/mt32/Analog.cpp b/audio/softsynth/mt32/Analog.cpp index 2901198f2c..6073357041 100644 --- a/audio/softsynth/mt32/Analog.cpp +++ b/audio/softsynth/mt32/Analog.cpp @@ -273,6 +273,8 @@ Analog *Analog::createAnalog(const AnalogOutputMode mode, const bool oldMT32Anal return new AnalogImpl<IntSampleEx>(mode, oldMT32AnalogLPF); case RendererType_FLOAT: return new AnalogImpl<FloatSample>(mode, oldMT32AnalogLPF); + default: + break; } return NULL; } diff --git a/audio/softsynth/mt32/BReverbModel.cpp b/audio/softsynth/mt32/BReverbModel.cpp index af559a92a1..5835bf0a6e 100644 --- a/audio/softsynth/mt32/BReverbModel.cpp +++ b/audio/softsynth/mt32/BReverbModel.cpp @@ -633,6 +633,8 @@ BReverbModel *BReverbModel::createBReverbModel(const ReverbMode mode, const bool return new BReverbModelImpl<IntSample>(mode, mt32CompatibleModel); case RendererType_FLOAT: return new BReverbModelImpl<FloatSample>(mode, mt32CompatibleModel); + default: + break; } return NULL; } diff --git a/audio/softsynth/mt32/Synth.cpp b/audio/softsynth/mt32/Synth.cpp index a0d6631fab..0486aa4eff 100644 --- a/audio/softsynth/mt32/Synth.cpp +++ b/audio/softsynth/mt32/Synth.cpp @@ -1611,6 +1611,8 @@ void Synth::writeMemoryRegion(const MemoryRegion *region, Bit32u addr, Bit32u le case MR_Reset: reset(); break; + default: + break; } } diff --git a/audio/softsynth/mt32/TVF.cpp b/audio/softsynth/mt32/TVF.cpp index 7ba9c7f2e0..d0c21c8169 100644 --- a/audio/softsynth/mt32/TVF.cpp +++ b/audio/softsynth/mt32/TVF.cpp @@ -206,6 +206,8 @@ void TVF::nextPhase() { } startRamp((levelMult * partialParam->tvf.envLevel[3]) >> 8, 0, newPhase); return; + default: + break; } int envPointIndex = phase; |