aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2019-12-19 13:16:18 +0000
committerD G Turner2019-12-19 13:16:18 +0000
commitfc5eb5ecf881db0ce73b8adce996f85dbaac838e (patch)
treec3e6bf3c820001996abe2ac064dc443d70894bdd
parent6a9b081bad90dde39f93f4475ffd3bcb1c43b1e8 (diff)
downloadscummvm-rg350-fc5eb5ecf881db0ce73b8adce996f85dbaac838e.tar.gz
scummvm-rg350-fc5eb5ecf881db0ce73b8adce996f85dbaac838e.tar.bz2
scummvm-rg350-fc5eb5ecf881db0ce73b8adce996f85dbaac838e.zip
GLK: ARCHETYPE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
-rw-r--r--engines/glk/archetype/array.cpp2
-rw-r--r--engines/glk/archetype/token.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/glk/archetype/array.cpp b/engines/glk/archetype/array.cpp
index 33147d1a9a..78bac696cc 100644
--- a/engines/glk/archetype/array.cpp
+++ b/engines/glk/archetype/array.cpp
@@ -51,6 +51,8 @@ bool access_xarray(XArrayType &the_xarray, int index, void *&result, AccessType
case POKE_ACCESS:
the_xarray[index - 1] = result;
break;
+ default:
+ break;
}
return true;
diff --git a/engines/glk/archetype/token.cpp b/engines/glk/archetype/token.cpp
index baeb7b70a8..e628412517 100644
--- a/engines/glk/archetype/token.cpp
+++ b/engines/glk/archetype/token.cpp
@@ -267,6 +267,8 @@ bool get_token(progfile &f) {
s = s + '\r';
next_ch = '\n';
break;
+ default:
+ break;
}
}
s = s + next_ch;