On Sat, Feb 21, 2009 at 08:45:33AM -0600, Bruno Wolff III wrote: > So far two bugs in gcc 4.4 have been corrected. > I got through ai.cpp, but am now getting warnings in ai_python.cpp . > > The Py_Register calls such as: > Py_Register(wesnoth_unit_type, "unit"); > are all resulting in warnigs like: > ai_python.cpp:2100: error: dereferencing type-punned pointer will break > strict-aliasing rules > > There seem to have been a number of bugs in gcc's aliasing detection, so I > wouldn't be surprised if this turned out to be another gcc bug, but I'd > likel to hear a comment from someone who knows what Py_Register is doing > before filing another bug.
This problem seems to be caused by Python 2.6 and not by gcc 4.4. It has been reported [1] while using gcc 4.3.2. We discussed this bug on irc today and I assigned it to ilor who wants to look into it. Of course you're free to look into it as well just let ilor know to avoid duplicate efforts to fix this issue. [1] https://gna.org/bugs/?12638 -- Regards, Mark de Wever aka Mordante/SkeletonCrew _______________________________________________ Wesnoth-dev mailing list [email protected] https://mail.gna.org/listinfo/wesnoth-dev
