[Scummvm-git-logs] scummvm master -> 3959797b85430b5ae0e2a9a9e182582bdf889723

digitall 547637+digitall at users.noreply.github.com
Thu Nov 28 14:42:08 UTC 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:
3959797b85 AUDIO: Fix Remaining Missing Default Switch Cases


Commit: 3959797b85430b5ae0e2a9a9e182582bdf889723
    https://github.com/scummvm/scummvm/commit/3959797b85430b5ae0e2a9a9e182582bdf889723
Author: D G Turner (digitall at scummvm.org)
Date: 2019-11-28T14:38:43Z

Commit Message:
AUDIO: Fix Remaining Missing Default Switch Cases

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

Changed paths:
    audio/decoders/qdm2.cpp
    audio/mods/maxtrax.cpp
    audio/mods/tfmx.cpp


diff --git a/audio/decoders/qdm2.cpp b/audio/decoders/qdm2.cpp
index ed1c014..a9cf30e 100644
--- a/audio/decoders/qdm2.cpp
+++ b/audio/decoders/qdm2.cpp
@@ -1552,6 +1552,9 @@ void QDM2Stream::fill_coding_method_array(sb_int8_array tone_level_idx, sb_int8_
 						case 4:
 							if (comp < 16)
 								comp = 16;
+							break;
+						default:
+							break;
 					}
 					if (comp <= 5)
 						tmp = 0;
diff --git a/audio/mods/maxtrax.cpp b/audio/mods/maxtrax.cpp
index b907357..4295b57 100644
--- a/audio/mods/maxtrax.cpp
+++ b/audio/mods/maxtrax.cpp
@@ -236,6 +236,8 @@ void MaxTrax::interrupt() {
 							}
 						}
 						break;
+					default:
+						break;
 					}
 					break;
 
@@ -327,6 +329,9 @@ endOfEventLoop:
 			}
 			voice.stopEventTime = -1;
 			break;
+
+		default:
+			break;
 		}
 
 		// Process Envelope
@@ -501,6 +506,8 @@ allNotesOff:
 				killVoice((byte)i);
 		}
 		break;
+	default:
+		break;
 	}
 }
 
diff --git a/audio/mods/tfmx.cpp b/audio/mods/tfmx.cpp
index 8d31faa..a2a474a 100644
--- a/audio/mods/tfmx.cpp
+++ b/audio/mods/tfmx.cpp
@@ -604,6 +604,9 @@ bool Tfmx::patternRun(PatternContext &pattern) {
 
 			case 15: 	// NOP
 				continue;
+
+			default:
+				break;
 			}
 		}
 	}
@@ -732,6 +735,9 @@ void Tfmx::noteCommand(const uint8 note, const uint8 param1, const uint8 param2,
 			channel.envCount = channel.envSkip = (param2 >> 4) + 1;
 			channel.envEndVolume = param3;
 			break;
+
+		default:
+			break;
 	}
 }
 




More information about the Scummvm-git-logs mailing list