[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

@ -74,7 +74,9 @@ namespace swig {
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)