Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-12-09 02:24:41 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-12-09 02:24:41 +0400
commit3c4987f98378d44eda133311c65aa19412e4cd38 (patch)
tree4371b4117d3290e60a58190481e926ebb17fcf28 /source/blender/freestyle/intern/python/BPy_Id.cpp
parentec33687d6cf74775e37fdc1a14e22dea08289cb1 (diff)
Fix for a number of compiler warnings as well as a bug hidden by the warnings.
Patch contribution by Bastien Montagne, thanks!
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Id.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Id.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Id.cpp b/source/blender/freestyle/intern/python/BPy_Id.cpp
index 9254badd95d..8f8336f6c17 100644
--- a/source/blender/freestyle/intern/python/BPy_Id.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Id.cpp
@@ -55,9 +55,9 @@ static char Id___doc__[] =
static int Id___init__(BPy_Id *self, PyObject *args, PyObject *kwds)
{
int first = 0, second = 0;
- static char *kwlist[] = {"first", "second", NULL};
+ static const char *kwlist[] = {"first", "second", NULL};
- if (! PyArg_ParseTupleAndKeywords(args, kwds, "|ii", kwlist, &first, &second) )
+ if (! PyArg_ParseTupleAndKeywords(args, kwds, "|ii", (char**)kwlist, &first, &second) )
return -1;
self->id = new Id( first, second );