aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRendererSpec.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2017-08-06 15:26:44 +0200
committerTorbjörn Andersson2017-08-06 15:26:44 +0200
commit5602ca3d64d5015b8b80e8ea47e408c25a08feb0 (patch)
tree85729f20fd3cdaad83ac640020acf85b00adcefa /graphics/VectorRendererSpec.cpp
parent70a2ca8b7d64e993fdab89c7b8b0d30ab4334824 (diff)
downloadscummvm-rg350-5602ca3d64d5015b8b80e8ea47e408c25a08feb0.tar.gz
scummvm-rg350-5602ca3d64d5015b8b80e8ea47e408c25a08feb0.tar.bz2
scummvm-rg350-5602ca3d64d5015b8b80e8ea47e408c25a08feb0.zip
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.
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r--graphics/VectorRendererSpec.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index 3dd9c86f45..ef7d672fd0 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);
}