summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-16 21:10:01 +0000
committerrubidium <rubidium@openttd.org>2014-09-16 21:10:01 +0000
commit22fc96ad6bc8d69707b2d3a20f47562da818da01 (patch)
tree7da20d4e748016a6dfe3aa35bde202171c1534df /src
parent0291a1be11a87e083778de790a7f9a168c3d40f0 (diff)
downloadopenttd-22fc96ad6bc8d69707b2d3a20f47562da818da01.tar.xz
(svn r26839) -Fix [Squirrel]: some dead code and making switch fall throughs more explicit
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/squirrel/squirrel/sqvm.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqvm.cpp b/src/3rdparty/squirrel/squirrel/sqvm.cpp
index 08303e80f..d76787ef3 100644
--- a/src/3rdparty/squirrel/squirrel/sqvm.cpp
+++ b/src/3rdparty/squirrel/squirrel/sqvm.cpp
@@ -534,6 +534,7 @@ bool SQVM::FOREACH_OP(SQObjectPtr &o1,SQObjectPtr &o2,SQObjectPtr
_generator(o1)->Resume(this, arg_2+1);
_FINISH(0);
}
+ /* FALL THROUGH */
default:
Raise_Error("cannot iterate %s", GetTypeName(o1));
}
@@ -763,6 +764,7 @@ exception_restore:
ct_stackbase = _stackbase;
goto common_call;
}
+ /* FALL THROUGH */
case _OP_CALL: {
ct_tailcall = false;
ct_target = arg0;
@@ -1018,7 +1020,7 @@ common_call:
}
}
continue;
- case _OP_THROW: Raise_Error(TARGET); SQ_THROW(); continue;
+ case _OP_THROW: Raise_Error(TARGET); SQ_THROW();
case _OP_CLASS: _GUARD(CLASS_OP(TARGET,arg1,arg2)); continue;
case _OP_NEWSLOTA:
bool bstatic = (arg0&NEW_SLOT_STATIC_FLAG)?true:false;