Skip to content

Commit

Permalink
JANITORIAL: Fix GCC7 fall through warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 11, 2017
1 parent 4325605 commit e3d720f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions engines/sword1/logic.cpp
Expand Up @@ -497,12 +497,12 @@ int Logic::interpretScript(Object *compact, int id, Header *scriptModule, int sc
mCodeNumber = scriptCode[pc++];
mCodeArguments = scriptCode[pc++];
switch (mCodeArguments) {
case 6: f = stack[--stackIdx];
case 5: e = stack[--stackIdx];
case 4: d = stack[--stackIdx];
case 3: c = stack[--stackIdx];
case 2: b = stack[--stackIdx];
case 1: a = stack[--stackIdx];
case 6: f = stack[--stackIdx]; // fall through
case 5: e = stack[--stackIdx]; // fall through
case 4: d = stack[--stackIdx]; // fall through
case 3: c = stack[--stackIdx]; // fall through
case 2: b = stack[--stackIdx]; // fall through
case 1: a = stack[--stackIdx]; // fall through
case 0:
Debug::callMCode(mCodeNumber, mCodeArguments, a, b, c, d, e, f);
mCodeReturn = (this->*_mcodeTable[mCodeNumber])(compact, id, a, b, c, d, e, f);
Expand Down

0 comments on commit e3d720f

Please sign in to comment.