From 7bf7a415f77feae79efe88cdc08120d0b204a52f Mon Sep 17 00:00:00 2001 From: D G Turner Date: Fri, 18 Oct 2019 15:24:54 +0100 Subject: DRACI: Fix Missing Default Switch Cases These are flagged by GCC if -Wswitch-default is enabled. --- engines/draci/font.cpp | 3 +++ engines/draci/game.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/draci') diff --git a/engines/draci/font.cpp b/engines/draci/font.cpp index c688f4292d..669c7d85e0 100644 --- a/engines/draci/font.cpp +++ b/engines/draci/font.cpp @@ -173,6 +173,9 @@ void Font::drawChar(Surface *dst, uint8 chr, int tx, int ty, int with_color) con case 251: color = kFontColor4; break; + + default: + break; } // Paint the pixel diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp index f82ef395f3..523a1d0132 100644 --- a/engines/draci/game.cpp +++ b/engines/draci/game.cpp @@ -643,8 +643,8 @@ void Game::loop(LoopSubstatus substatus, bool shouldExit) { case kStatusDialogue: handleDialogueLoop(); break; - case kStatusGate: - // cannot happen when isCursonOn; added for completeness + case kStatusGate: // cannot happen when isCursonOn; added for completeness + default: break; } } @@ -1000,6 +1000,8 @@ void Game::inventorySwitch(int keycode) { removeItem(new_item); } break; + default: + break; } if (getLoopStatus() == kStatusOrdinary) { updateOrdinaryCursor(); -- cgit v1.2.3