diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-04-11 15:36:48 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:20 -0300 |
commit | e6a322e777ab36bbed430a8836e0f656de49963d (patch) | |
tree | 661613b8c36aee63a76023ab6d503ccdfa66b695 /libshiboken | |
parent | 001a416ffbc4808e2ba8a1c76d335eb504339673 (diff) |
Remove GCC 4.6 warning on basewrapper.cpp and shibokengenerator.cpp
libshiboken/basewrapper.cpp:212:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
generator/shibokengenerator.cpp:1118:9: warning: variable ‘numArgs’ set but not used [-Wunused-but-set-variable]
Diffstat (limited to 'libshiboken')
-rw-r--r-- | libshiboken/basewrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index fbf6c215f..6c8c3fb3c 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -210,9 +210,9 @@ PyObject* SbkObjectTypeTpNew(PyTypeObject* metatype, PyObject* args, PyObject* k PyObject* name; PyObject* pyBases; PyObject* dict; - static char* kwlist[] = { "name", "bases", "dict", 0}; + static const char* kwlist[] = { "name", "bases", "dict", 0}; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "SO!O!:sbktype", kwlist, + if (!PyArg_ParseTupleAndKeywords(args, kwds, "SO!O!:sbktype", (char**)kwlist, &name, &PyTuple_Type, &pyBases, &PyDict_Type, &dict)) |