diff options
author | D G Turner | 2019-11-12 05:16:09 +0000 |
---|---|---|
committer | D G Turner | 2019-11-12 05:16:09 +0000 |
commit | 4e3b2557da21f293ae328850d44bd0f55d043dbd (patch) | |
tree | c77c91afdee65383123adcd87fa7d8f0837f32f1 /engines/glk | |
parent | 7ca72705320760450d9afc32fc5659b0f661d064 (diff) | |
download | scummvm-rg350-4e3b2557da21f293ae328850d44bd0f55d043dbd.tar.gz scummvm-rg350-4e3b2557da21f293ae328850d44bd0f55d043dbd.tar.bz2 scummvm-rg350-4e3b2557da21f293ae328850d44bd0f55d043dbd.zip |
GLK: ARCHETYPE: Suppress Fallthrough Compiler Warnings
Not sure if these fallthroughs are intended, so marked with FIXME comments.
Diffstat (limited to 'engines/glk')
-rw-r--r-- | engines/glk/archetype/semantic.cpp | 2 | ||||
-rw-r--r-- | engines/glk/archetype/token.cpp | 6 |
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; |