From 1c9405d4bf19e89d6bf084df8bec67f62637d824 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 1 Sep 2004 22:25:56 +0000 Subject: [PATCH] Various warning fixes for Sun Workshop compilers git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6205 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/python.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index 64c800be8..43364daee 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -1396,9 +1396,9 @@ public: Printf(w->code, "swig_set_inner(\"%s\", true);\n", name); 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 { - 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); if (dirprot_mode() && !is_public(n))