diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-27 14:15:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-27 14:15:55 +0300 |
commit | 14e7fcfddea30911a96f1272e03e7d1ae4cb25f5 (patch) | |
tree | 3f4b994a3bf28951ce4a9f2c7ad7b79569eb11ce /source | |
parent | c722728b7f001e91db0f6a228e05459e97654928 (diff) |
Cleanup: warnings
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_element.c | 2 | ||||
-rw-r--r-- | source/blender/python/gpu/gpu_py_element.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_element.c b/source/blender/gpu/intern/gpu_element.c index 782346f4712..b8ce4faabea 100644 --- a/source/blender/gpu/intern/gpu_element.c +++ b/source/blender/gpu/intern/gpu_element.c @@ -74,6 +74,8 @@ int GPU_indexbuf_primitive_len(GPUPrimType prim_type) return 3; case GPU_PRIM_LINES_ADJ: return 4; + default: + break; } #if TRUST_NO_ONE assert(false); diff --git a/source/blender/python/gpu/gpu_py_element.c b/source/blender/python/gpu/gpu_py_element.c index 1683def7ec8..63d1f24a3ef 100644 --- a/source/blender/python/gpu/gpu_py_element.c +++ b/source/blender/python/gpu/gpu_py_element.c @@ -113,8 +113,8 @@ static PyObject *bpygpu_IndexBuf_new(PyTypeObject *UNUSED(type), PyObject *args, index_len *= pybuffer.shape[1]; } - /* The `vertex_len` parameter is only used for asserts in the Debug build. - /* Not very useful in python since scripts are often tested in Release build. + /* The `vertex_len` parameter is only used for asserts in the Debug build. */ + /* Not very useful in python since scripts are often tested in Release build. */ /* Use `INT_MAX` instead of the actual number of vertices. */ GPU_indexbuf_init( &builder, params.type_id, index_len, INT_MAX); @@ -144,8 +144,8 @@ static PyObject *bpygpu_IndexBuf_new(PyTypeObject *UNUSED(type), PyObject *args, index_len = seq_len * verts_per_prim; - /* The `vertex_len` parameter is only used for asserts in the Debug build. - /* Not very useful in python since scripts are often tested in Release build. + /* The `vertex_len` parameter is only used for asserts in the Debug build. */ + /* Not very useful in python since scripts are often tested in Release build. */ /* Use `INT_MAX` instead of the actual number of vertices. */ GPU_indexbuf_init( &builder, params.type_id, index_len, INT_MAX); |