Skip to content

Commit

Permalink
Merge pull request #43 from lelit/fix-compilation-warning
Browse files Browse the repository at this point in the history
Fix "ISO C++ forbids converting a string constant to ‘char*’" warning
  • Loading branch information
kenrobbins committed Aug 29, 2016
2 parents d80784c + 5d0001f commit 3ee3170
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python-rapidjson/rapidjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ rapidjson_loads(PyObject* self, PyObject* args, PyObject* kwargs)
PyObject* uuidModeObj = NULL;
UuidMode uuidMode = UUID_MODE_NONE;

static char* kwlist[] = {
static char const * kwlist[] = {
"s",
"object_hook",
"use_decimal",
Expand All @@ -733,7 +733,7 @@ rapidjson_loads(PyObject* self, PyObject* args, PyObject* kwargs)
};

if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|OpppOO:rapidjson.loads",
kwlist,
(char **) kwlist,
&jsonObject,
&objectHook,
&useDecimal,
Expand Down Expand Up @@ -1238,7 +1238,7 @@ rapidjson_dumps(PyObject* self, PyObject* args, PyObject* kwargs)
const char indentChar = ' ';
unsigned indentCharCount = 4;

static char* kwlist[] = {
static char const * kwlist[] = {
"obj",
"skipkeys",
"ensure_ascii",
Expand All @@ -1253,7 +1253,7 @@ rapidjson_dumps(PyObject* self, PyObject* args, PyObject* kwargs)
NULL
};
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|pppOOppIOO:rapidjson.dumps",
kwlist,
(char **) kwlist,
&value,
&skipKeys,
&ensureAscii,
Expand Down

0 comments on commit 3ee3170

Please sign in to comment.