aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/glk/archetype/semantic.cpp2
-rw-r--r--engines/glk/archetype/token.cpp6
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/glk/archetype/semantic.cpp b/engines/glk/archetype/semantic.cpp
index c7ed368ece..c13b770e80 100644
--- a/engines/glk/archetype/semantic.cpp
+++ b/engines/glk/archetype/semantic.cpp
@@ -188,6 +188,8 @@ bool verify_expr(progfile &f, ExprTree the_expr) {
the_expr->_data._oper.right->_data._ident.ident_kind = ATTRIBUTE_ID;
if (the_expr->_data._oper.right->_data._ident.ident_int == 0)
success = false;
+ // fallthrough
+ // FIXME: is this fallthrough intentional?
case OP_ASSIGN:
case OP_C_CONCAT:
diff --git a/engines/glk/archetype/token.cpp b/engines/glk/archetype/token.cpp
index 060dd1d79e..baeb7b70a8 100644
--- a/engines/glk/archetype/token.cpp
+++ b/engines/glk/archetype/token.cpp
@@ -185,6 +185,8 @@ bool get_token(progfile &f) {
switch (next_ch) {
case '#':
state = COMMENT;
+ // fallthrough
+ // FIXME: is this fallthrough intentional?
case ';':
if (!f.newlines) {
state = START;
@@ -193,12 +195,14 @@ bool get_token(progfile &f) {
f.tnum = (int)NEWLINE_CH;
state = STOP;
}
+ // fallthrough
+ // FIXME: is this fallthrough intentional?
default:
f.ttype = PUNCTUATION;
f.tnum = (int)next_ch;
state = STOP;
+ break;
}
- break;
}
break;