[Scummvm-git-logs] scummvm master -> 4d911012e26eb9fc2098d586b0c2108667d3c2af

digitall 547637+digitall at users.noreply.github.com
Fri Oct 4 04:54:38 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4d911012e2 MT32: Add Missing Default Switch Cases


Commit: 4d911012e26eb9fc2098d586b0c2108667d3c2af
    https://github.com/scummvm/scummvm/commit/4d911012e26eb9fc2098d586b0c2108667d3c2af
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-04T03:51:40+01:00

Commit Message:
MT32: Add Missing Default Switch Cases

These are flagged by GCC if -Wswitch-default is enabled.

Changed paths:
    audio/softsynth/mt32/Analog.cpp
    audio/softsynth/mt32/BReverbModel.cpp
    audio/softsynth/mt32/Synth.cpp
    audio/softsynth/mt32/TVF.cpp


diff --git a/audio/softsynth/mt32/Analog.cpp b/audio/softsynth/mt32/Analog.cpp
index 2901198..6073357 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 af559a9..5835bf0 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 a0d6631..0486aa4 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 7ba9c7f..d0c21c8 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;





More information about the Scummvm-git-logs mailing list