[Python] Apply GCC 4.3 warnings patch from Philipp Thomas (SF#1925122).

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2008-03-26 08:52:57 +00:00
commit b2375fd6e6
3 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,10 @@
Version 1.3.35 (in progress) Version 1.3.35 (in progress)
============================ ============================
03/26/2008: olly
[Python] Apply GCC 4.3 warnings patch from Philipp Thomas
(SF#1925122).
03/21/2008: wsfulton 03/21/2008: wsfulton
[Python] Thread safety patch for STL iterators from Abhinandan Jain. [Python] Thread safety patch for STL iterators from Abhinandan Jain.

View file

@ -74,7 +74,9 @@ namespace swig {
PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
{ {
if (initial_ref) Py_XINCREF(_obj); if (initial_ref) {
Py_XINCREF(_obj);
}
} }
PyObject_ptr & operator=(const PyObject_ptr& item) PyObject_ptr & operator=(const PyObject_ptr& item)

View file

@ -448,7 +448,7 @@ namespace swig
~PySequence_Cont() ~PySequence_Cont()
{ {
if (_seq) Py_DECREF(_seq); Py_XDECREF(_seq);
} }
size_type size() const size_type size() const