From 4aaff742fc83c461f07bb205746258455935a3a2 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 14 Nov 2019 23:48:05 +0000 Subject: LAB: Fix Missing Default Switch Cases These are flagged by GCC if -Wswitch-default is enabled. --- engines/lab/engine.cpp | 10 ++++++++++ engines/lab/processroom.cpp | 3 +++ 2 files changed, 13 insertions(+) (limited to 'engines') diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index 793a333a54..e8e275d219 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -843,6 +843,9 @@ void LabEngine::processMainButton(uint16 &curInv, uint16 &lastInv, uint16 &oldDi _interface->mayShowCrumbIndicator(); break; + + default: + break; } _graphics->screenUpdate(); @@ -960,6 +963,9 @@ void LabEngine::processAltButton(uint16 &curInv, uint16 &lastInv, uint16 buttonI } } break; + + default: + break; } _graphics->screenUpdate(); @@ -1024,6 +1030,10 @@ void LabEngine::performAction(uint16 actionMode, Common::Point curPos, uint16 &c else if (curPos.y < (_utils->vgaScaleY(149) + _utils->svgaCord(2))) drawStaticMessage(kTextNothing); } + break; + + default: + break; } } diff --git a/engines/lab/processroom.cpp b/engines/lab/processroom.cpp index 58b7e253f1..f6086828c3 100644 --- a/engines/lab/processroom.cpp +++ b/engines/lab/processroom.cpp @@ -469,6 +469,9 @@ void LabEngine::doActions(const ActionList &actionList) { } break; + + default: + break; } } -- cgit v1.2.3