Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-09-28 06:39:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-09-28 06:41:54 +0300
commit1f18523edfb07455d5c8196170a513db7b3cae9f (patch)
tree6b27b3ecfe24a15b6bf9a5780b18b17f2872848d /source/blender/python
parentc133927bb802022f656e081534e7556be1acbd53 (diff)
Cleanup: switch fall-through warning
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/generic/bgl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c
index ff6345cb6d6..9cf00192db5 100644
--- a/source/blender/python/generic/bgl.c
+++ b/source/blender/python/generic/bgl.c
@@ -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;