diff options
author | D G Turner | 2019-12-19 13:16:18 +0000 |
---|---|---|
committer | D G Turner | 2019-12-19 13:16:18 +0000 |
commit | fc5eb5ecf881db0ce73b8adce996f85dbaac838e (patch) | |
tree | c3e6bf3c820001996abe2ac064dc443d70894bdd | |
parent | 6a9b081bad90dde39f93f4475ffd3bcb1c43b1e8 (diff) | |
download | scummvm-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.cpp | 2 | ||||
-rw-r--r-- | engines/glk/archetype/token.cpp | 2 |
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; |