Fixed bug 3815 - implicit-fallthrough warning - DUFFS_LOOP4 and friends

This commit is contained in:
Sam Lantinga 2017-09-10 12:49:41 -07:00
parent 19114b0378
commit 5f48ce0b64

View File

@ -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); \
} \
}