浏览代码

Fixed bug 3812 - Fallthrough warnings gcc-7

Sam Lantinga 8 年之前
父节点
当前提交
e98fc8972d
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/render/software/SDL_draw.h

+ 4 - 4
src/render/software/SDL_draw.h

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