[Scummvm-git-logs] scummvm master -> e3d720f09b7e3455aa34ea5ac26e9c935100570f

sev- sev at scummvm.org
Fri Aug 11 20:47:40 CEST 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e3d720f09b JANITORIAL: Fix GCC7 fall through warnings


Commit: e3d720f09b7e3455aa34ea5ac26e9c935100570f
    https://github.com/scummvm/scummvm/commit/e3d720f09b7e3455aa34ea5ac26e9c935100570f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-08-11T20:46:56+02:00

Commit Message:
JANITORIAL: Fix GCC7 fall through warnings

Changed paths:
    engines/sword1/logic.cpp


diff --git a/engines/sword1/logic.cpp b/engines/sword1/logic.cpp
index a0067ff..1b70e8c 100644
--- a/engines/sword1/logic.cpp
+++ b/engines/sword1/logic.cpp
@@ -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);





More information about the Scummvm-git-logs mailing list