[Scummvm-git-logs] scummvm master -> 59f8e62adf89af283d4dfa636d8981e59d34fc6f

eriktorbjorn eriktorbjorn at telia.com
Mon Sep 11 06:49:33 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:
59f8e62adf JANITORIAL: Silence GCC 7 warnings


Commit: 59f8e62adf89af283d4dfa636d8981e59d34fc6f
    https://github.com/scummvm/scummvm/commit/59f8e62adf89af283d4dfa636d8981e59d34fc6f
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2017-09-11T06:48:34+02:00

Commit Message:
JANITORIAL: Silence GCC 7 warnings

These fall throughs have to be deliberate, or they wouldn't have to
check if mode equals 2 in the mode == 2 cases.

Changed paths:
    video/bink_decoder.cpp


diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp
index 8cbde8c..7f2bedf 100644
--- a/video/bink_decoder.cpp
+++ b/video/bink_decoder.cpp
@@ -1111,6 +1111,7 @@ void BinkDecoder::BinkVideoTrack::readDCTCoeffs(VideoFrame &video, int16 *block,
 			case 0:
 				coefList[listPos] = ccoef + 4;
 				modeList[listPos] = 1;
+				// fall through
 			case 2:
 				if (mode == 2) {
 					coefList[listPos]   = 0;
@@ -1218,6 +1219,7 @@ void BinkDecoder::BinkVideoTrack::readResidue(VideoFrame &video, int16 *block, i
 			case 0:
 				coefList[listPos] = ccoef + 4;
 				modeList[listPos] = 1;
+				// fall through
 			case 2:
 				if (mode == 2) {
 					coefList[listPos]   = 0;





More information about the Scummvm-git-logs mailing list