diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-28 19:22:26 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-28 19:46:51 +0300 |
commit | 41a284212a65e1590dc28bee83dcd72ef5e0a6f3 (patch) | |
tree | 0d829ec7b95cb5679576f7d5879e26022d234e3e /source/blender/python/gpu | |
parent | 046735d75148f5e27a3f4917010dd80f1691705d (diff) |
Cleanup: fix compiler warnings.
Diffstat (limited to 'source/blender/python/gpu')
-rw-r--r-- | source/blender/python/gpu/gpu_py_shader.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |