aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2019-12-16 02:44:00 +0000
committerD G Turner2019-12-16 02:44:00 +0000
commitf13ea97bad855298590d93297a0eb9f3c420b5ef (patch)
tree91a788248b47e1d40fa303f672e3f30435a4c5b9
parentd6c88b6a662cf55aefe4c7bb540bc6ee06c2a293 (diff)
downloadscummvm-rg350-f13ea97bad855298590d93297a0eb9f3c420b5ef.tar.gz
scummvm-rg350-f13ea97bad855298590d93297a0eb9f3c420b5ef.tar.bz2
scummvm-rg350-f13ea97bad855298590d93297a0eb9f3c420b5ef.zip
GLK: JACL: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
-rw-r--r--engines/glk/jacl/interpreter.cpp2
-rw-r--r--engines/glk/jacl/libcsv.cpp2
-rw-r--r--engines/glk/jacl/utils.cpp2
3 files changed, 6 insertions, 0 deletions
diff --git a/engines/glk/jacl/interpreter.cpp b/engines/glk/jacl/interpreter.cpp
index 38c618a253..d758667713 100644
--- a/engines/glk/jacl/interpreter.cpp
+++ b/engines/glk/jacl/interpreter.cpp
@@ -3426,6 +3426,8 @@ int select_next() {
}
}
break;
+ default:
+ break;
}
}
diff --git a/engines/glk/jacl/libcsv.cpp b/engines/glk/jacl/libcsv.cpp
index ccb90b8280..9e006b0713 100644
--- a/engines/glk/jacl/libcsv.cpp
+++ b/engines/glk/jacl/libcsv.cpp
@@ -176,6 +176,8 @@ int csv_fini(struct csv_parser *p, void (*cb1)(void *, size_t, void *), void (*c
SUBMIT_ROW(p, -1);
case ROW_NOT_BEGUN: /* Already ended properly */
;
+ default:
+ break;
}
/* Reset parser */
diff --git a/engines/glk/jacl/utils.cpp b/engines/glk/jacl/utils.cpp
index 48ede2babd..294543455f 100644
--- a/engines/glk/jacl/utils.cpp
+++ b/engines/glk/jacl/utils.cpp
@@ -95,6 +95,8 @@ char *strip_return(char *string) {
case '\n':
string[index] = 0;
break;
+ default:
+ break;
}
}