Fixed bug 3812 - Fallthrough warnings gcc-7

Sam Lantinga 2017-09-10 12:54:40 -07:00
parent 5f48ce0b64
commit e98fc8972d
1 changed files with 4 additions and 4 deletions

View File

@ -562,10 +562,10 @@ do { \
while (height--) { \ while (height--) { \
{ int n = (width+3)/4; \ { int n = (width+3)/4; \
switch (width & 3) { \ switch (width & 3) { \
case 0: do { op; pixel++; \ case 0: do { op; pixel++; /* fallthrough */ \
case 3: op; pixel++; \ case 3: op; pixel++; /* fallthrough */ \
case 2: op; pixel++; \ case 2: op; pixel++; /* fallthrough */ \
case 1: op; pixel++; \ case 1: op; pixel++; /* fallthrough */ \
} while ( --n > 0 ); \ } while ( --n > 0 ); \
} \ } \
} \ } \