From: William S F. <ws...@fu...> - 2011-11-29 06:50:23
|
On 29/11/11 05:31, ol...@us... wrote: > Revision: 12852 > http://swig.svn.sourceforge.net/swig/?rev=12852&view=rev > Author: olly > Date: 2011-11-29 05:31:37 +0000 (Tue, 29 Nov 2011) > Log Message: > ----------- > [Python] Fix some warnings when compiling generated wrappers with > certain GCC warning options (Debian bug #650246). > > Modified Paths: > -------------- > trunk/CHANGES.current > trunk/Lib/python/pyrun.swg > > Modified: trunk/CHANGES.current > =================================================================== > --- trunk/CHANGES.current 2011-11-29 05:20:45 UTC (rev 12851) > +++ trunk/CHANGES.current 2011-11-29 05:31:37 UTC (rev 12852) > @@ -5,6 +5,10 @@ > Version 2.0.5 (in progress) > =========================== > > +2011-11-27: olly > + [Python] Fix some warnings when compiling generated wrappers with > + certain GCC warning options (Debian bug #650246). > + > 2011-11-28: wsfulton > Fix #3433541 %typemap(in, numinputs=0) with 10+ arguments. > > > Modified: trunk/Lib/python/pyrun.swg > =================================================================== > --- trunk/Lib/python/pyrun.swg 2011-11-29 05:20:45 UTC (rev 12851) > +++ trunk/Lib/python/pyrun.swg 2011-11-29 05:31:37 UTC (rev 12852) > @@ -71,7 +71,7 @@ > SWIGINTERN void > SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { > SWIG_PYTHON_THREAD_BEGIN_BLOCK; > - PyErr_SetString(errtype, (char *) msg); > + PyErr_SetString(errtype, msg); I think these casts are needed for older versions of python which had the methods declared as taking char * instead of const char *. Can someone please check who has some of the older versions of python installed, so we can determine which versions will break and so we can decide if we should deliberately break these older versions, especially as this patch just removes some warnings using some additional gcc warnings. Similarly for the recent perl changes Olly put in from a similar Debian bug report. William |