| Summary: | implicit-fallthrough warning - DUFFS_LOOP4 and friends | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Martin Gerhardy <martin.gerhardy> |
| Component: | build | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
Fixed, thanks! https://hg.libsdl.org/SDL/rev/1d9e9c9fc5c0 |
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; ~~~~^~~~