aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorD G Turner2019-10-18 15:24:54 +0100
committerD G Turner2019-10-18 15:24:54 +0100
commit7bf7a415f77feae79efe88cdc08120d0b204a52f (patch)
tree26d3109b4674f759e3daca60d971f425a4d459ef /engines/draci
parent4d8a0f22f2001447f4790bfcd2041eccda0b723a (diff)
downloadscummvm-rg350-7bf7a415f77feae79efe88cdc08120d0b204a52f.tar.gz
scummvm-rg350-7bf7a415f77feae79efe88cdc08120d0b204a52f.tar.bz2
scummvm-rg350-7bf7a415f77feae79efe88cdc08120d0b204a52f.zip
DRACI: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/font.cpp3
-rw-r--r--engines/draci/game.cpp6
2 files changed, 7 insertions, 2 deletions
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();