diff options
author | D G Turner | 2019-11-16 11:30:12 +0000 |
---|---|---|
committer | D G Turner | 2019-11-16 11:30:12 +0000 |
commit | 129988d0e946c622fd8319a19666c623850dac6d (patch) | |
tree | 4101897ccda7fb7848fb1f8d225194f39a5278de /engines/illusions/threads | |
parent | 4b6cb6878488577eb0c047e3baea412eb98d02c2 (diff) | |
download | scummvm-rg350-129988d0e946c622fd8319a19666c623850dac6d.tar.gz scummvm-rg350-129988d0e946c622fd8319a19666c623850dac6d.tar.bz2 scummvm-rg350-129988d0e946c622fd8319a19666c623850dac6d.zip |
ILLUSIONS: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/illusions/threads')
-rw-r--r-- | engines/illusions/threads/talkthread.cpp | 6 | ||||
-rw-r--r-- | engines/illusions/threads/talkthread_duckman.cpp | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/engines/illusions/threads/talkthread.cpp b/engines/illusions/threads/talkthread.cpp index 34abda89a8..e2ddde537c 100644 --- a/engines/illusions/threads/talkthread.cpp +++ b/engines/illusions/threads/talkthread.cpp @@ -236,6 +236,8 @@ if (true) { } return kTSTerminate; + default: + break; } return kTSTerminate; @@ -324,6 +326,8 @@ void TalkThread::onUnpause() { } } break; + default: + break; } } @@ -368,6 +372,8 @@ uint32 TalkThread::sendMessage(int msgNum, uint32 msgValue) { case kMsgClearSequenceId2: _sequenceId2 = 0; break; + default: + break; } return 0; } diff --git a/engines/illusions/threads/talkthread_duckman.cpp b/engines/illusions/threads/talkthread_duckman.cpp index 0b67248832..752f06f7a0 100644 --- a/engines/illusions/threads/talkthread_duckman.cpp +++ b/engines/illusions/threads/talkthread_duckman.cpp @@ -197,6 +197,8 @@ int TalkThread_Duckman::onUpdate() { } return kTSTerminate; + default: + break; } return kTSTerminate; @@ -272,6 +274,8 @@ uint32 TalkThread_Duckman::sendMessage(int msgNum, uint32 msgValue) { case kMsgClearSequenceId2: _sequenceId2 = 0; break; + default: + break; } return 0; } |