diff options
author | D G Turner | 2019-12-16 07:36:33 +0000 |
---|---|---|
committer | D G Turner | 2019-12-16 07:36:33 +0000 |
commit | fc813901ff1fb2e550c7c61cb269ec0498661a2b (patch) | |
tree | 9de19e06f5d5f44874659034487de3a3c0be4fd3 /engines/glk/agt/exec.cpp | |
parent | 63789ac6982f1f5257fe2d800000f0c9065baf96 (diff) | |
download | scummvm-rg350-fc813901ff1fb2e550c7c61cb269ec0498661a2b.tar.gz scummvm-rg350-fc813901ff1fb2e550c7c61cb269ec0498661a2b.tar.bz2 scummvm-rg350-fc813901ff1fb2e550c7c61cb269ec0498661a2b.zip |
GLK: AGT: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/glk/agt/exec.cpp')
-rw-r--r-- | engines/glk/agt/exec.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/glk/agt/exec.cpp b/engines/glk/agt/exec.cpp index 983002aa44..9e69747a20 100644 --- a/engines/glk/agt/exec.cpp +++ b/engines/glk/agt/exec.cpp @@ -106,6 +106,8 @@ void set_statline() { case 5: sprintf(r_stat, "Score: %ld", tscore); break; + default: + break; } } @@ -204,6 +206,7 @@ static word it_pronoun(int item, rbool ind_form) if (tcreat(item)) switch (creature[item - first_creat].gender) { case 0: + default: return ext_code[wit]; case 1: return (ind_form ? ext_code[wher] : ext_code[wshe]); @@ -484,6 +487,7 @@ static char *wordvar_match(const char **pvarname, char match_type, /* Now need to fix capitalization */ switch (capstate(start)) { case 0: + default: break; /* $word$ */ case 1: /* $WORD$ */ for (i = 0; fill_buff[i] != '\0'; i++) @@ -1243,6 +1247,8 @@ static void set_pronoun(int item) { case 2: last_he = item; break; + default: + break; } } |