[Bf-blender-cvs] [1f18523edfb] master: Cleanup: switch fall-through warning
Campbell Barton
noreply at git.blender.org
Thu Sep 28 05:31:37 CEST 2017
Commit: 1f18523edfb07455d5c8196170a513db7b3cae9f
Author: Campbell Barton
Date: Thu Sep 28 13:39:32 2017 +1000
Branches: master
https://developer.blender.org/rB1f18523edfb07455d5c8196170a513db7b3cae9f
Cleanup: switch fall-through warning
===================================================================
M source/blender/python/generic/bgl.c
===================================================================
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;
More information about the Bf-blender-cvs
mailing list