aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/minigames
diff options
context:
space:
mode:
authorD G Turner2019-12-12 17:31:01 +0000
committerD G Turner2019-12-12 17:31:01 +0000
commit799a088b6edb7772c01d60ebc3e6160bb26ce8fc (patch)
treec3586556fd1efe38db42629427c718af16ca41d7 /engines/gob/minigames
parentf62dc99600da83128b7ee1c08bfb09ebc6539173 (diff)
downloadscummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.gz
scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.bz2
scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.zip
GOB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/gob/minigames')
-rw-r--r--engines/gob/minigames/geisha/evilfish.cpp1
-rw-r--r--engines/gob/minigames/geisha/penetration.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/minigames/geisha/evilfish.cpp b/engines/gob/minigames/geisha/evilfish.cpp
index cd47e689b1..7b3a4c9787 100644
--- a/engines/gob/minigames/geisha/evilfish.cpp
+++ b/engines/gob/minigames/geisha/evilfish.cpp
@@ -92,6 +92,7 @@ void EvilFish::advance() {
switch (_state) {
case kStateNone:
+ default:
break;
case kStateSwimLeft:
diff --git a/engines/gob/minigames/geisha/penetration.cpp b/engines/gob/minigames/geisha/penetration.cpp
index 0ebcd2c55b..a69d998ffd 100644
--- a/engines/gob/minigames/geisha/penetration.cpp
+++ b/engines/gob/minigames/geisha/penetration.cpp
@@ -715,6 +715,9 @@ void Penetration::createMap() {
_sub->sub = new Submarine(*_objects);
_sub->sub->setPosition(kPlayAreaX + kPlayAreaBorderWidth, kPlayAreaY + kPlayAreaBorderHeight);
break;
+
+ default:
+ break;
}
}
}