From 59f8e62adf89af283d4dfa636d8981e59d34fc6f Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 11 Sep 2017 06:48:34 +0200 Subject: 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. --- video/bink_decoder.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp index 8cbde8c849..7f2bedfbf4 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; -- cgit v1.2.3