[python] warnings removal

Hi, with gcc-4.3.4 there is a warning * warning: type attributes ignored after type is already defined gcc.compile.c++ bin.v2/libs/python/build/gcc-4.3.4/release/threading-multi/numeric.o In file included from ./boost/python/object/make_instance.hpp:9, from ./boost/python/object/make_ptr_instance.hpp:8, from ./boost/python/to_python_indirect.hpp:11, from ./boost/python/converter/arg_to_python.hpp:10, from ./boost/python/call.hpp:15, from ./boost/python/object_core.hpp:14, from ./boost/python/object.hpp:9, from ./boost/python/tuple.hpp:10, from ./boost/python/numeric.hpp:10, from libs\python\src\numeric.cpp:6: ./boost/python/object/instance.hpp:14: warning: type attributes ignored after type is already defined This warning can be removed by adding a forward declaration file. See attached patch. * warning: deprecated conversion from string constant to ‘char*’ ./boost/python/object/instance.hpp:14: warning: type attributes ignored after type is already defined 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*’ This warning can be removed with attached patch. Can these patches be include in trunk? Best, Vicente

Vicente Botet wrote:
Hi,
with gcc-4.3.4 there is a warning
* warning: deprecated conversion from string constant to ‘char*’
./boost/python/object/instance.hpp:14: warning: type attributes ignored after type is already defined 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*’
It seems that there were already a Trac Patch https://svn.boost.org/trac/boost/ticket/4692 :( Vicente -- View this message in context: http://boost.2283326.n4.nabble.com/python-warnings-removal-tp3061320p3061728... Sent from the Boost - Dev mailing list archive at Nabble.com.
participants (2)
-
Vicente Botet
-
Vicente BOTET