[Scummvm-git-logs] scummvm master -> 8a96a1854d65b61b8e57498f1e66c42735e6cdb9

digitall 547637+digitall at users.noreply.github.com
Fri Oct 4 03:33:12 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:
8a96a1854d RECORDER: Add Missing Default Switch Cases


Commit: 8a96a1854d65b61b8e57498f1e66c42735e6cdb9
    https://github.com/scummvm/scummvm/commit/8a96a1854d65b61b8e57498f1e66c42735e6cdb9
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-04T02:30:19+01:00

Commit Message:
RECORDER: Add Missing Default Switch Cases

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

Changed paths:
    common/recorderfile.cpp


diff --git a/common/recorderfile.cpp b/common/recorderfile.cpp
index 3db017e..efdc342 100644
--- a/common/recorderfile.cpp
+++ b/common/recorderfile.cpp
@@ -361,6 +361,8 @@ void PlaybackFile::readEvent(RecorderEvent& event) {
 	case kRecorderEventTypeTimer:
 		event.time = _tmpPlaybackFile.readUint32LE();
 		break;
+	default:
+		// fallthrough intended
 	case kRecorderEventTypeNormal:
 		event.type = (EventType)_tmpPlaybackFile.readUint32LE();
 		switch (event.type) {
@@ -514,6 +516,8 @@ void PlaybackFile::writeEvent(const RecorderEvent &event) {
 	case kRecorderEventTypeTimer:
 		_tmpRecordFile.writeUint32LE(event.time);
 		break;
+	default:
+		// fallthrough intended
 	case kRecorderEventTypeNormal:
 		_tmpRecordFile.writeUint32LE((uint32)event.type);
 		switch(event.type) {





More information about the Scummvm-git-logs mailing list