mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
RECORDER: Add Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
This commit is contained in:
parent
40337b67e2
commit
8a96a1854d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user