diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-27 13:47:55 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-27 16:23:31 +0300 |
commit | 585dd261208e7b92035f32909399330cadaa36d5 (patch) | |
tree | 36cc1239806bb2c6bb2ade50e734a3df64ddc987 /intern/cycles/blender/blender_python.cpp | |
parent | 232c2d382e4218f89f5c689e1982626b20fd54d2 (diff) |
Cycles: Code cleanup, prepare for strict C++ flags
Diffstat (limited to 'intern/cycles/blender/blender_python.cpp')
-rw-r--r-- | intern/cycles/blender/blender_python.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/intern/cycles/blender/blender_python.cpp b/intern/cycles/blender/blender_python.cpp index 292af14c63a..7e5893e5663 100644 --- a/intern/cycles/blender/blender_python.cpp +++ b/intern/cycles/blender/blender_python.cpp @@ -25,6 +25,7 @@ #include "util_md5.h" #include "util_opengl.h" #include "util_path.h" +#include "util_types.h" #ifdef WITH_OSL #include "osl.h" @@ -70,7 +71,7 @@ static const char *PyC_UnicodeAsByte(PyObject *py_str, PyObject **coerce) return ""; } -static PyObject *init_func(PyObject *self, PyObject *args) +static PyObject *init_func(PyObject * /*self*/, PyObject *args) { PyObject *path, *user_path; int headless; @@ -90,7 +91,7 @@ static PyObject *init_func(PyObject *self, PyObject *args) Py_RETURN_NONE; } -static PyObject *create_func(PyObject *self, PyObject *args) +static PyObject *create_func(PyObject * /*self*/, PyObject *args) { PyObject *pyengine, *pyuserpref, *pydata, *pyscene, *pyregion, *pyv3d, *pyrv3d; int preview_osl; @@ -162,14 +163,14 @@ static PyObject *create_func(PyObject *self, PyObject *args) return PyLong_FromVoidPtr(session); } -static PyObject *free_func(PyObject *self, PyObject *value) +static PyObject *free_func(PyObject * /*self*/, PyObject *value) { delete (BlenderSession*)PyLong_AsVoidPtr(value); Py_RETURN_NONE; } -static PyObject *render_func(PyObject *self, PyObject *value) +static PyObject *render_func(PyObject * /*self*/, PyObject *value) { BlenderSession *session = (BlenderSession*)PyLong_AsVoidPtr(value); @@ -183,7 +184,7 @@ static PyObject *render_func(PyObject *self, PyObject *value) } /* pixel_array and result passed as pointers */ -static PyObject *bake_func(PyObject *self, PyObject *args) +static PyObject *bake_func(PyObject * /*self*/, PyObject *args) { PyObject *pysession, *pyobject; PyObject *pypixel_array, *pyresult; @@ -214,7 +215,7 @@ static PyObject *bake_func(PyObject *self, PyObject *args) Py_RETURN_NONE; } -static PyObject *draw_func(PyObject *self, PyObject *args) +static PyObject *draw_func(PyObject * /*self*/, PyObject *args) { PyObject *pysession, *pyv3d, *pyrv3d; @@ -234,7 +235,7 @@ static PyObject *draw_func(PyObject *self, PyObject *args) Py_RETURN_NONE; } -static PyObject *reset_func(PyObject *self, PyObject *args) +static PyObject *reset_func(PyObject * /*self*/, PyObject *args) { PyObject *pysession, *pydata, *pyscene; @@ -260,7 +261,7 @@ static PyObject *reset_func(PyObject *self, PyObject *args) Py_RETURN_NONE; } -static PyObject *sync_func(PyObject *self, PyObject *value) +static PyObject *sync_func(PyObject * /*self*/, PyObject *value) { BlenderSession *session = (BlenderSession*)PyLong_AsVoidPtr(value); @@ -273,7 +274,7 @@ static PyObject *sync_func(PyObject *self, PyObject *value) Py_RETURN_NONE; } -static PyObject *available_devices_func(PyObject *self, PyObject *args) +static PyObject *available_devices_func(PyObject * /*self*/, PyObject * /*args*/) { vector<DeviceInfo>& devices = Device::available_devices(); PyObject *ret = PyTuple_New(devices.size()); @@ -288,7 +289,7 @@ static PyObject *available_devices_func(PyObject *self, PyObject *args) #ifdef WITH_OSL -static PyObject *osl_update_node_func(PyObject *self, PyObject *args) +static PyObject *osl_update_node_func(PyObject * /*self*/, PyObject *args) { PyObject *pynodegroup, *pynode; const char *filepath = NULL; @@ -464,7 +465,7 @@ static PyObject *osl_update_node_func(PyObject *self, PyObject *args) Py_RETURN_TRUE; } -static PyObject *osl_compile_func(PyObject *self, PyObject *args) +static PyObject *osl_compile_func(PyObject * /*self*/, PyObject *args) { const char *inputfile = NULL, *outputfile = NULL; @@ -479,7 +480,7 @@ static PyObject *osl_compile_func(PyObject *self, PyObject *args) } #endif -static PyObject *system_info_func(PyObject *self, PyObject *value) +static PyObject *system_info_func(PyObject * /*self*/, PyObject * /*value*/) { string system_info = Device::device_capabilities(); return PyUnicode_FromString(system_info.c_str()); |