Boost C++ Libraries: Ticket #8523: Python library warning messages https://svn.boost.org/trac10/ticket/8523 <p> Hi, </p> <p> I built Boost 1.53.0 on Fedora 18 32/64-bit using the following command: </p> <p> ./b2 link=shared runtime-link=shared address-model=32|64 variant=release </p> <p> and received the following messages during the compilation: </p> <p> libs/python/src/object/enum.cpp: In function ‘boost::python::api::object boost::python::objects::{anonymous}::new_enum_type(const char*, const char*)’: libs/python/src/object/enum.cpp:150:44: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] libs/python/src/object/class.cpp: In function ‘<a class="missing wiki">PyObject</a>* boost::python::objects::static_data()’: libs/python/src/object/class.cpp:211:46: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] libs/python/src/object/class.cpp: In function ‘boost::python::type_handle boost::python::objects::class_metatype()’: libs/python/src/object/class.cpp:319:49: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] libs/python/src/object/class.cpp: In function ‘boost::python::type_handle boost::python::objects::class_type()’: libs/python/src/object/class.cpp:473:45: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] libs/python/src/object/function.cpp: In constructor ‘boost::python::objects::function::function(const boost::python::objects::py_function&amp;, const boost::python::detail::keyword*, unsigned int)’: libs/python/src/object/function.cpp:108:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] libs/python/src/object/function.cpp:110:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] libs/python/src/object/life_support.cpp: In function ‘<a class="missing wiki">PyObject</a>* boost::python::objects::make_nurse_and_patient(<a class="missing wiki">PyObject</a>*, <a class="missing wiki">PyObject</a>*)’: libs/python/src/object/life_support.cpp:94:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] libs/python/src/object/life_support.cpp:96:43: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8523 Trac 1.4.3 lcarreon@… Mon, 08 Jul 2013 00:55:10 GMT <link>https://svn.boost.org/trac10/ticket/8523#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8523#comment:1</guid> <description> <p> These warnings are still appearing in Boost 1.54.0 </p> </description> <category>Ticket</category> </item> </channel> </rss>