[Boost-bugs] [Boost C++ Libraries] #3554: PyArg_ParseTupleAndKeywords and deprecated conversion to char*

Subject: [Boost-bugs] [Boost C++ Libraries] #3554: PyArg_ParseTupleAndKeywords and deprecated conversion to char*
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-24 13:06:40


#3554: PyArg_ParseTupleAndKeywords and deprecated conversion to char*
------------------------------------------+---------------------------------
 Reporter: mloskot <mateusz@…> | Owner: dave
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: Python
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
------------------------------------------+---------------------------------
 Building current trunk (r57126) with GCC 4.4.1 it throws the following
 warnings :

 {{{
 gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4.1/release/link-static
 /threading-multi/object/class.o
 libs/python/src/object/class.cpp: In function ‘int
 boost::python::property_init(PyObject*, PyObject*, PyObject*)’:
 libs/python/src/object/class.cpp:79: warning: deprecated conversion from
 string constant to ‘char*’
 libs/python/src/object/class.cpp:79: warning: deprecated conversion from
 string constant to ‘char*’
 libs/python/src/object/class.cpp:79: warning: deprecated conversion from
 string constant to ‘char*’
 libs/python/src/object/class.cpp:79: warning: deprecated conversion from
 string constant to ‘char*’
 }}}

 The problem is caused not by Boost itself, but it's a Python problem that
 has been discussed here:
  * [http://bugs.python.org/issue1772673 Issue 1772673: Replacing char*
 with const char*]
  * [http://mail.python.org/pipermail/python-dev/2006-February/060689.html
 Baffled by PyArg_ParseTupleAndKeywords modification]

 However, when Python is fixed it seems to be a good idea to fix the
 Boost.Python too.

 Environment: Linux Ubuntu 9.10 (64-bit), GCC 4.4.1, Python 2.6.4rc2

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3554>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC