From fc813901ff1fb2e550c7c61cb269ec0498661a2b Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 16 Dec 2019 07:36:33 +0000 Subject: GLK: AGT: Fix Missing Default Switch Cases These are flagged by GCC if -Wswitch-default is enabled. --- engines/glk/agt/exec.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/glk/agt/exec.cpp') 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; } } -- cgit v1.2.3