aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2019-12-17 01:38:42 +0000
committerD G Turner2019-12-17 01:38:42 +0000
commit85383256c264aa0075cfdfb350582aeb21e318cc (patch)
tree25081c6062b6c20c3ee034a1423b92a5f583caf8 /engines
parent6f62481548b22faf4784bb2a646e2089bc624eea (diff)
downloadscummvm-rg350-85383256c264aa0075cfdfb350582aeb21e318cc.tar.gz
scummvm-rg350-85383256c264aa0075cfdfb350582aeb21e318cc.tar.bz2
scummvm-rg350-85383256c264aa0075cfdfb350582aeb21e318cc.zip
GLK: ALAN2: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines')
-rw-r--r--engines/glk/alan2/inter.cpp8
-rw-r--r--engines/glk/alan2/sysdep.cpp3
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/glk/alan2/inter.cpp b/engines/glk/alan2/inter.cpp
index 4e6639a3f6..64aff1fd74 100644
--- a/engines/glk/alan2/inter.cpp
+++ b/engines/glk/alan2/inter.cpp
@@ -57,6 +57,8 @@ static void if_(Aword v) {
lev--;
if (lev == 0) return;
break;
+ default:
+ break;
}
}
}
@@ -78,6 +80,8 @@ static void else_() {
case I_IF:
lev++;
break;
+ default:
+ break;
}
}
}
@@ -118,6 +122,8 @@ static void depexec(Aword v) {
case I_DEPELSE:
if (lev == 1) return;
break;
+ default:
+ break;
}
}
}
@@ -141,6 +147,8 @@ static void depcase() {
lev--;
if (lev == 0) return;
break;
+ default:
+ break;
}
}
}
diff --git a/engines/glk/alan2/sysdep.cpp b/engines/glk/alan2/sysdep.cpp
index 27ab2c8639..ba8cc5eb4d 100644
--- a/engines/glk/alan2/sysdep.cpp
+++ b/engines/glk/alan2/sysdep.cpp
@@ -269,6 +269,9 @@ void toIso(char copy[], /* OUT - Mapped string */
*c = dosMap[*o];
*c = '\0';
break;
+
+ default:
+ break;
}
}