[Scummvm-git-logs] scummvm master -> 5602ca3d64d5015b8b80e8ea47e408c25a08feb0

eriktorbjorn eriktorbjorn at telia.com
Sun Aug 6 15:27:19 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:
5602ca3d64 JANITORIAL: Silence some more GCC 7 fallthrough warnings


Commit: 5602ca3d64d5015b8b80e8ea47e408c25a08feb0
    https://github.com/scummvm/scummvm/commit/5602ca3d64d5015b8b80e8ea47e408c25a08feb0
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2017-08-06T15:26:44+02:00

Commit Message:
JANITORIAL: Silence some more GCC 7 fallthrough warnings

These weren't explicitly flagged as deliberate, but I recognize
Duff's Device when I see it.

Changed paths:
    graphics/VectorRendererSpec.cpp


diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index 3dd9c86..ef7d672 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -449,13 +449,13 @@ void colorFill(PixelType *first, PixelType *last, PixelType color) {
 	register int n = (count + 7) >> 3;
 	switch (count % 8) {
 	case 0: do {
-				*first++ = color;
-	case 7:		*first++ = color;
-	case 6:		*first++ = color;
-	case 5:		*first++ = color;
-	case 4:		*first++ = color;
-	case 3:		*first++ = color;
-	case 2:		*first++ = color;
+				*first++ = color;	// fall through
+	case 7:		*first++ = color;	// fall through
+	case 6:		*first++ = color;	// fall through
+	case 5:		*first++ = color;	// fall through
+	case 4:		*first++ = color;	// fall through
+	case 3:		*first++ = color;	// fall through
+	case 2:		*first++ = color;	// fall through
 	case 1:		*first++ = color;
 			} while (--n > 0);
 	}
@@ -488,13 +488,13 @@ void colorFillClip(PixelType *first, PixelType *last, PixelType color, int realX
 	register int n = (count + 7) >> 3;
 	switch (count % 8) {
 	case 0: do {
-		*first++ = color;
-	case 7:		*first++ = color;
-	case 6:		*first++ = color;
-	case 5:		*first++ = color;
-	case 4:		*first++ = color;
-	case 3:		*first++ = color;
-	case 2:		*first++ = color;
+		*first++ = color;	// fall through
+	case 7:		*first++ = color;	// fall through
+	case 6:		*first++ = color;	// fall through
+	case 5:		*first++ = color;	// fall through
+	case 4:		*first++ = color;	// fall through
+	case 3:		*first++ = color;	// fall through
+	case 2:		*first++ = color;	// fall through
 	case 1:		*first++ = color;
 	} while (--n > 0);
 	}





More information about the Scummvm-git-logs mailing list