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 - implicit-fallthrough warning - DUFFS_LOOP4 and friends
Summary: implicit-fallthrough warning - DUFFS_LOOP4 and friends
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:56 UTC by Martin Gerhardy
Modified: 2017-09-10 19:53 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: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