Boost logo

Boost :

Subject: [boost] [python]  warnings removal
From: Vicente BOTET (vicente.botet_at_[hidden])
Date: 2010-11-27 04:21:18


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




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk