[Bf-blender-cvs] [41a284212a6] blender2.8: Cleanup: fix compiler warnings.

Brecht Van Lommel noreply at git.blender.org
Sun Oct 28 17:48:41 CET 2018


Commit: 41a284212a65e1590dc28bee83dcd72ef5e0a6f3
Author: Brecht Van Lommel
Date:   Sun Oct 28 17:22:26 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB41a284212a65e1590dc28bee83dcd72ef5e0a6f3

Cleanup: fix compiler warnings.

===================================================================

M	source/blender/python/gpu/gpu_py_shader.c

===================================================================

diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c
index bc3aea91166..d6f4c45b684 100644
--- a/source/blender/python/gpu/gpu_py_shader.c
+++ b/source/blender/python/gpu/gpu_py_shader.c
@@ -522,6 +522,7 @@ static PyObject *bpygpu_shader_uniform_int(
 	if (PyLong_Check(params.seq)) {
 		values[0] = PyC_Long_AsI32(params.seq);
 		length = 1;
+		ret = 0;
 	}
 	else {
 		PyObject *seq_fast = PySequence_Fast(params.seq, error_prefix);
@@ -655,7 +656,7 @@ static PyObject *bpygpu_shader_program_get(BPyGPUShader *self, void *UNUSED(clos
 }
 
 static PyGetSetDef bpygpu_shader_getseters[] = {
-	{"program",
+	{(char *)"program",
 	 (getter)bpygpu_shader_program_get, (setter)NULL,
 	 bpygpu_shader_program_doc, NULL},
 	{NULL, NULL, NULL, NULL, NULL} /* Sentinel */



More information about the Bf-blender-cvs mailing list