From b0b0e573fb4f82ebfc740d95565c2822682c2248 Mon Sep 17 00:00:00 2001 From: Lothar Serra Mari Date: Sat, 6 Jun 2020 12:52:54 +0200 Subject: [PATCH] MT32: Add missing default switch cases See 4d911012e26eb9fc2098d586b0c2108667d3c2af for reference. --- audio/softsynth/mt32/Analog.cpp | 2 ++ audio/softsynth/mt32/BReverbModel.cpp | 2 ++ audio/softsynth/mt32/Synth.cpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/audio/softsynth/mt32/Analog.cpp b/audio/softsynth/mt32/Analog.cpp index b14d824dda7..1f3e2e079b8 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(mode, oldMT32AnalogLPF); case RendererType_FLOAT: return new AnalogImpl(mode, oldMT32AnalogLPF); + default: + break; } return NULL; } diff --git a/audio/softsynth/mt32/BReverbModel.cpp b/audio/softsynth/mt32/BReverbModel.cpp index 1eb6f7e5686..7507cfc9a14 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(mode, mt32CompatibleModel); case RendererType_FLOAT: return new BReverbModelImpl(mode, mt32CompatibleModel); + default: + break; } return NULL; } diff --git a/audio/softsynth/mt32/Synth.cpp b/audio/softsynth/mt32/Synth.cpp index d61ad44a6c0..bd7510471bb 100644 --- a/audio/softsynth/mt32/Synth.cpp +++ b/audio/softsynth/mt32/Synth.cpp @@ -1674,6 +1674,8 @@ void Synth::writeMemoryRegion(const MemoryRegion *region, Bit32u addr, Bit32u le case MR_Reset: reset(); break; + default: + break; } }