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 - gcc7 fallthrough warnings in SDL_iconv.c and SDL_pixels.c
Summary: gcc7 fallthrough warnings in SDL_iconv.c and SDL_pixels.c
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-10 17:52 UTC by Martin Gerhardy
Modified: 2017-09-10 19:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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