We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3813

Summary: gcc7 fallthrough warnings in SDL_iconv.c and SDL_pixels.c
Product: SDL Reporter: Martin Gerhardy <martin.gerhardy>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: All   

Description Martin Gerhardy 2017-09-10 17:52:42 UTC
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_pixels.c: In function ‘SDL_MasksToPixelFormatEnum_REAL’:
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_pixels.c:326:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
         if (Rmask == 0) {
            ^
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_pixels.c:330:5: note: here
     case 16:
     ^~~~





/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/stdlib/SDL_iconv.c: In function ‘SDL_iconv_REAL’:
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/stdlib/SDL_iconv.c:798:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (ch > 0x10FFFF) {
                ^
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/stdlib/SDL_iconv.c:801:9: note: here
         case ENCODING_UCS4BE:
         ^~~~
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/stdlib/SDL_iconv.c:819:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if (ch > 0x10FFFF) {
                ^
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/stdlib/SDL_iconv.c:822:9: note: here
         case ENCODING_UCS4LE:
         ^~~~
Comment 1 Sam Lantinga 2017-09-10 19:46:01 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/3c9983546738