From 22fc96ad6bc8d69707b2d3a20f47562da818da01 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 16 Sep 2014 21:10:01 +0000 Subject: (svn r26839) -Fix [Squirrel]: some dead code and making switch fall throughs more explicit --- src/3rdparty/squirrel/squirrel/sqvm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2