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.
This commit is contained in:
parent
70a2ca8b7d
commit
5602ca3d64
1 changed files with 14 additions and 14 deletions
|
@ -449,13 +449,13 @@ void colorFill(PixelType *first, PixelType *last, PixelType color) {
|
||||||
register int n = (count + 7) >> 3;
|
register int n = (count + 7) >> 3;
|
||||||
switch (count % 8) {
|
switch (count % 8) {
|
||||||
case 0: do {
|
case 0: do {
|
||||||
*first++ = color;
|
*first++ = color; // fall through
|
||||||
case 7: *first++ = color;
|
case 7: *first++ = color; // fall through
|
||||||
case 6: *first++ = color;
|
case 6: *first++ = color; // fall through
|
||||||
case 5: *first++ = color;
|
case 5: *first++ = color; // fall through
|
||||||
case 4: *first++ = color;
|
case 4: *first++ = color; // fall through
|
||||||
case 3: *first++ = color;
|
case 3: *first++ = color; // fall through
|
||||||
case 2: *first++ = color;
|
case 2: *first++ = color; // fall through
|
||||||
case 1: *first++ = color;
|
case 1: *first++ = color;
|
||||||
} while (--n > 0);
|
} while (--n > 0);
|
||||||
}
|
}
|
||||||
|
@ -488,13 +488,13 @@ void colorFillClip(PixelType *first, PixelType *last, PixelType color, int realX
|
||||||
register int n = (count + 7) >> 3;
|
register int n = (count + 7) >> 3;
|
||||||
switch (count % 8) {
|
switch (count % 8) {
|
||||||
case 0: do {
|
case 0: do {
|
||||||
*first++ = color;
|
*first++ = color; // fall through
|
||||||
case 7: *first++ = color;
|
case 7: *first++ = color; // fall through
|
||||||
case 6: *first++ = color;
|
case 6: *first++ = color; // fall through
|
||||||
case 5: *first++ = color;
|
case 5: *first++ = color; // fall through
|
||||||
case 4: *first++ = color;
|
case 4: *first++ = color; // fall through
|
||||||
case 3: *first++ = color;
|
case 3: *first++ = color; // fall through
|
||||||
case 2: *first++ = color;
|
case 2: *first++ = color; // fall through
|
||||||
case 1: *first++ = color;
|
case 1: *first++ = color;
|
||||||
} while (--n > 0);
|
} while (--n > 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue