diff options
author | D G Turner | 2019-12-17 01:38:42 +0000 |
---|---|---|
committer | D G Turner | 2019-12-17 01:38:42 +0000 |
commit | 85383256c264aa0075cfdfb350582aeb21e318cc (patch) | |
tree | 25081c6062b6c20c3ee034a1423b92a5f583caf8 /engines/glk | |
parent | 6f62481548b22faf4784bb2a646e2089bc624eea (diff) | |
download | scummvm-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/glk')
-rw-r--r-- | engines/glk/alan2/inter.cpp | 8 | ||||
-rw-r--r-- | engines/glk/alan2/sysdep.cpp | 3 |
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; } } |