diff options
author | D G Turner | 2019-12-12 17:31:01 +0000 |
---|---|---|
committer | D G Turner | 2019-12-12 17:31:01 +0000 |
commit | 799a088b6edb7772c01d60ebc3e6160bb26ce8fc (patch) | |
tree | c3586556fd1efe38db42629427c718af16ca41d7 /engines/gob/expression.cpp | |
parent | f62dc99600da83128b7ee1c08bfb09ebc6539173 (diff) | |
download | scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.gz scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.bz2 scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.zip |
GOB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/gob/expression.cpp')
-rw-r--r-- | engines/gob/expression.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/gob/expression.cpp b/engines/gob/expression.cpp index c108e1d82d..7cd5ab0446 100644 --- a/engines/gob/expression.cpp +++ b/engines/gob/expression.cpp @@ -174,6 +174,10 @@ void Expression::skipExpr(char stopToken) { case OP_FUNC: _vm->_game->_script->skip(1); skipExpr(OP_END_EXPR); + break; + + default: + break; } continue; } // if ((operation >= OP_ARRAY_INT8) && (operation <= OP_FUNC)) @@ -309,6 +313,9 @@ void Expression::printExpr_internal(char stopToken) { debugN(5, "id("); printExpr_internal(OP_END_EXPR); break; + + default: + break; } continue; } // if ((operation >= OP_ARRAY_INT8) && (operation <= OP_FUNC)) @@ -783,11 +790,17 @@ void Expression::loadValue(byte operation, uint32 varBase, const StackFrame &sta _resultInt = _vm->_util->getRandom(_resultInt); break; + + default: + break; } *stackFrame.opers = OP_LOAD_IMM_INT16; *stackFrame.values = _resultInt; break; + + default: + break; } } @@ -823,6 +836,9 @@ void Expression::simpleArithmetic1(StackFrame &stackFrame) { stackFrame.values[-2] &= stackFrame.values[0]; stackFrame.pop(2); break; + + default: + break; } } @@ -859,6 +875,9 @@ void Expression::simpleArithmetic2(StackFrame &stackFrame) { stackFrame.values[-3] &= stackFrame.values[-1]; stackFrame.pop(2); break; + + default: + break; } } |