RECORDER: Add Missing Default Switch Cases

These are flagged by GCC if -Wswitch-default is enabled.
This commit is contained in:
D G Turner 2019-10-04 02:30:19 +01:00
parent 40337b67e2
commit 8a96a1854d

View File

@ -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) {