Various warning fixes for Sun Workshop compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6205 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
531719cebd
commit
1c9405d4bf
1 changed files with 2 additions and 2 deletions
|
|
@ -1396,9 +1396,9 @@ public:
|
||||||
Printf(w->code, "swig_set_inner(\"%s\", true);\n", name);
|
Printf(w->code, "swig_set_inner(\"%s\", true);\n", name);
|
||||||
|
|
||||||
if (Len(parse_args) > 0) {
|
if (Len(parse_args) > 0) {
|
||||||
Printf(w->code, "result = PyObject_CallMethod(swig_get_self(), \"%s\", \"(%s)\" %s);\n", pyname, parse_args, arglist);
|
Printf(w->code, "result = PyObject_CallMethod(swig_get_self(), (char *)\"%s\", (char *)\"(%s)\" %s);\n", pyname, parse_args, arglist);
|
||||||
} else {
|
} else {
|
||||||
Printf(w->code, "result = PyObject_CallMethod(swig_get_self(), \"%s\", NULL);\n", pyname);
|
Printf(w->code, "result = PyObject_CallMethod(swig_get_self(), (char *)\"%s\", NULL);\n", pyname);
|
||||||
}
|
}
|
||||||
Printv(xdecref, "Py_XDECREF(result);\n", NULL);
|
Printv(xdecref, "Py_XDECREF(result);\n", NULL);
|
||||||
if (dirprot_mode() && !is_public(n))
|
if (dirprot_mode() && !is_public(n))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue