[Bf-blender-cvs] [14e7fcfddea] blender2.8: Cleanup: warnings
Campbell Barton
noreply at git.blender.org
Thu Sep 27 13:01:35 CEST 2018
Commit: 14e7fcfddea30911a96f1272e03e7d1ae4cb25f5
Author: Campbell Barton
Date: Thu Sep 27 21:15:42 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB14e7fcfddea30911a96f1272e03e7d1ae4cb25f5
Cleanup: warnings
===================================================================
M source/blender/gpu/intern/gpu_element.c
M source/blender/python/gpu/gpu_py_element.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list