Opened 13 years ago

Closed 12 years ago

#3554 closed Bugs (duplicate)

PyArg_ParseTupleAndKeywords and deprecated conversion to char*

Reported by: mloskot <mateusz@…> Owned by: Dave Abrahams
Milestone: Component: python USE GITHUB
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

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:

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

Change History (1)

comment:1 by Matthew Bradbury <matt-bradbury@…>, 12 years ago

Milestone: Boost 1.41.0
Resolution: duplicate
Status: newclosed

Duplicate of #4692

Note: See TracTickets for help on using tickets.