Skip to content

Commit

Permalink
Fixed bug 3813 - gcc7 fallthrough warnings in SDL_iconv.c and SDL_pix…
Browse files Browse the repository at this point in the history
…els.c
  • Loading branch information
slouken committed Sep 10, 2017
1 parent 849c4c1 commit 19114b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/stdlib/SDL_iconv.c
Expand Up @@ -798,6 +798,7 @@ SDL_iconv(SDL_iconv_t cd,
if (ch > 0x10FFFF) {
ch = UNKNOWN_UNICODE;
}
/* fallthrough */
case ENCODING_UCS4BE:
if (ch > 0x7FFFFFFF) {
ch = UNKNOWN_UNICODE;
Expand All @@ -819,6 +820,7 @@ SDL_iconv(SDL_iconv_t cd,
if (ch > 0x10FFFF) {
ch = UNKNOWN_UNICODE;
}
/* fallthrough */
case ENCODING_UCS4LE:
if (ch > 0x7FFFFFFF) {
ch = UNKNOWN_UNICODE;
Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_pixels.c
Expand Up @@ -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;
Expand Down

0 comments on commit 19114b0

Please sign in to comment.