aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/imuse
diff options
context:
space:
mode:
authorD G Turner2019-12-23 11:56:16 +0000
committerD G Turner2019-12-23 11:56:16 +0000
commit59b639ed4d9b8c45644053641522dedabd12fa56 (patch)
treecc98618132f1de362fca07369718af68df44e70a /engines/scumm/imuse
parentd5808d2903e2cc2a04e8545b84f1528230a9b010 (diff)
downloadscummvm-rg350-59b639ed4d9b8c45644053641522dedabd12fa56.tar.gz
scummvm-rg350-59b639ed4d9b8c45644053641522dedabd12fa56.tar.bz2
scummvm-rg350-59b639ed4d9b8c45644053641522dedabd12fa56.zip
SCUMM: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/scumm/imuse')
-rw-r--r--engines/scumm/imuse/imuse.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/scumm/imuse/imuse.cpp b/engines/scumm/imuse/imuse.cpp
index 1d52539ab5..af91a77c23 100644
--- a/engines/scumm/imuse/imuse.cpp
+++ b/engines/scumm/imuse/imuse.cpp
@@ -176,6 +176,9 @@ bool IMuseInternal::isMT32(int sound) {
return true;
else
return false;
+
+ default:
+ break;
}
// Old style 'RO' has equivalent properties to 'ROL'
@@ -214,6 +217,9 @@ bool IMuseInternal::isMIDI(int sound) {
case MKTAG('G', 'M', 'D', ' '):
case MKTAG('M', 'I', 'D', 'I'): // Occurs in Sam & Max
return true;
+
+ default:
+ break;
}
// Old style 'RO' has equivalent properties to 'ROL'
@@ -255,6 +261,9 @@ bool IMuseInternal::supportsPercussion(int sound) {
case MKTAG('G', 'M', 'D', ' '):
case MKTAG('M', 'I', 'D', 'I'): // Occurs in Sam & Max
return true;
+
+ default:
+ break;
}
// Old style 'RO' has equivalent properties to 'ROL'
@@ -502,6 +511,9 @@ uint32 IMuseInternal::property(int prop, uint32 value) {
case IMuse::PROP_PC_SPEAKER:
_pcSpeaker = (value != 0);
break;
+
+ default:
+ break;
}
return 0;