Boost C++ Libraries: Ticket #3554: PyArg_ParseTupleAndKeywords and deprecated conversion to char* https://svn.boost.org/trac10/ticket/3554 <p> Building current trunk (<a class="changeset" href="https://svn.boost.org/trac10/changeset/57126" title="Update the intel compile flags.">r57126</a>) with GCC 4.4.1 it throws the following warnings : </p> <pre class="wiki">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*’ </pre><p> The problem is caused not by Boost itself, but it's a Python problem that has been discussed here: </p> <ul><li><a class="ext-link" href="http://bugs.python.org/issue1772673"><span class="icon">​</span>Issue 1772673: Replacing char* with const char*</a> </li><li><a class="ext-link" href="http://mail.python.org/pipermail/python-dev/2006-February/060689.html"><span class="icon">​</span>Baffled by PyArg_ParseTupleAndKeywords modification</a> </li></ul><p> However, when Python is fixed it seems to be a good idea to fix the Boost.Python too. </p> <p> Environment: Linux Ubuntu 9.10 (64-bit), GCC 4.4.1, Python 2.6.4rc2 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3554 Trac 1.4.3 Matthew Bradbury <matt-bradbury@…> Mon, 29 Nov 2010 16:02:02 GMT status changed; resolution set; milestone deleted https://svn.boost.org/trac10/ticket/3554#comment:1 https://svn.boost.org/trac10/ticket/3554#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> <li><strong>milestone</strong> <span class="trac-field-deleted">Boost 1.41.0</span> </li> </ul> <p> Duplicate of <a class="new ticket" href="https://svn.boost.org/trac10/ticket/4692" title="#4692: Patches: conversion from string literal to 'char *' is deprecated (new)">#4692</a> </p> Ticket