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 3815

Summary: implicit-fallthrough warning - DUFFS_LOOP4 and friends
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:56:54 UTC
In file included from /home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit_1.c:24:0:
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit_1.c: In function ‘Blit1toNAlpha’:
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit_1.c:461:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             dst += dstbpp;
             ~~~~^~~~
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit.h:491:21: note: in definition of macro ‘DUFFS_LOOP4’
     case 0: do {    pixel_copy_increment;                               \
                     ^~~~~~~~~~~~~~~~~~~~
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit.h:492:5: note: here
     case 3:     pixel_copy_increment;                                   \
     ^
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit_1.c:452:9: note: in expansion of macro ‘DUFFS_LOOP4’
         DUFFS_LOOP4(
         ^~~~~~~~~~~
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit_1.c:461:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             dst += dstbpp;
             ~~~~^~~~
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit.h:492:17: note: in definition of macro ‘DUFFS_LOOP4’
     case 3:     pixel_copy_increment;                                   \
                 ^~~~~~~~~~~~~~~~~~~~
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit.h:493:5: note: here
     case 2:     pixel_copy_increment;                                   \
     ^
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit_1.c:452:9: note: in expansion of macro ‘DUFFS_LOOP4’
         DUFFS_LOOP4(
         ^~~~~~~~~~~
/home/mgerhardy/dev/engine/contrib/libs/sdl2/src/video/SDL_blit_1.c:461:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             dst += dstbpp;
             ~~~~^~~~
Comment 1 Sam Lantinga 2017-09-10 19:53:55 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/1d9e9c9fc5c0