Skip to content

Commit

Permalink
Fixed bug 3815 - implicit-fallthrough warning - DUFFS_LOOP4 and friends
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 10, 2017
1 parent 19114b0 commit 5f48ce0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/SDL_blit.h
Expand Up @@ -488,10 +488,10 @@ do { \
#define DUFFS_LOOP4(pixel_copy_increment, width) \
{ int n = (width+3)/4; \
switch (width & 3) { \
case 0: do { pixel_copy_increment; \
case 3: pixel_copy_increment; \
case 2: pixel_copy_increment; \
case 1: pixel_copy_increment; \
case 0: do { pixel_copy_increment; /* fallthrough */ \
case 3: pixel_copy_increment; /* fallthrough */ \
case 2: pixel_copy_increment; /* fallthrough */ \
case 1: pixel_copy_increment; /* fallthrough */ \
} while (--n > 0); \
} \
}
Expand Down

0 comments on commit 5f48ce0

Please sign in to comment.