Cleanup: switch fall-through warning
authorCampbell Barton <ideasman42@gmail.com>
Thu, 28 Sep 2017 03:39:32 +0000 (13:39 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 28 Sep 2017 03:41:54 +0000 (13:41 +1000)
source/blender/python/generic/bgl.c

index ff6345cb6d6a2f102b1eb63f9b3b728615cfdebc..9cf00192db5b96300faec62ce1a51247e9c81cf9 100644 (file)
@@ -485,8 +485,10 @@ static int gl_buffer_type_from_py_format_char(char *typestr)
                case 'b':
                case 'h':
                        if (!byte_num) return GL_BYTE;
+                       ATTR_FALLTHROUGH;
                case 'i':
                        if (!byte_num) return GL_SHORT;
+                       ATTR_FALLTHROUGH;
                case 'l':
                        if (!byte_num || byte_num == '4') return GL_INT;
                        if (byte_num == '1') return GL_BYTE;
@@ -494,6 +496,7 @@ static int gl_buffer_type_from_py_format_char(char *typestr)
                        break;
                case 'f':
                        if (!byte_num) return GL_FLOAT;
+                       ATTR_FALLTHROUGH;
                case 'd':
                        if (!byte_num || byte_num == '8') return GL_DOUBLE;
                        if (byte_num == '4') return GL_FLOAT;