aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-03-10 06:39:23 +0000
committerTorbjörn Andersson2010-03-10 06:39:23 +0000
commit65585f643375e71d21d1c33e7c2f9a118897837d (patch)
treec182a841eb69a3d7473bb36b04b81e7c7f66f670 /engines/sci
parentfc50408ce38d562d73fea2182659a4800852dcb5 (diff)
downloadscummvm-rg350-65585f643375e71d21d1c33e7c2f9a118897837d.tar.gz
scummvm-rg350-65585f643375e71d21d1c33e7c2f9a118897837d.tar.bz2
scummvm-rg350-65585f643375e71d21d1c33e7c2f9a118897837d.zip
Silenced some harmless cppcheck warnings about unreachable code after a return.
In this case, it was always a break after a return in a switch case. There are similar cases which cppcheck didn't detect, and a couple of cases where we have a break after a continue in a switch case (where the continue refers to an outer loop), but I didn't touch those. Not yet, at least. svn-id: r48218
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kgraphics.cpp1
-rw-r--r--engines/sci/engine/vm.cpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 75aa4b4ecd..732041d820 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -238,7 +238,6 @@ reg_t kGraph(EngineState *s, int argc, reg_t *argv) {
if (g_sci->getResMan()->isAmiga32color())
return make_reg(0, 32);
return make_reg(0, !g_sci->getResMan()->isVGA() ? 16 : 256);
- break;
case K_GRAPH_DRAW_LINE:
priority = (argc > 6) ? argv[6].toSint16() : -1;
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index cb106950e9..6934a6f481 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -547,7 +547,6 @@ static reg_t pointer_add(EngineState *s, reg_t base, int offset) {
case SEG_TYPE_DYNMEM:
base.offset += offset;
return base;
- break;
default:
// FIXME: Changed this to warning, because iceman does this during dancing with girl.