Fixed bug 3813 - gcc7 fallthrough warnings in SDL_iconv.c and SDL_pixels.c

This commit is contained in:
Sam Lantinga
2017-09-10 12:42:38 -07:00
parent 849c4c1472
commit 19114b0378
2 changed files with 3 additions and 1 deletions

View File

@@ -326,7 +326,7 @@ SDL_MasksToPixelFormatEnum(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask,
if (Rmask == 0) {
return SDL_PIXELFORMAT_RGB555;
}
/* Fall through to 16-bit checks */
/* fallthrough */
case 16:
if (Rmask == 0) {
return SDL_PIXELFORMAT_RGB565;