2 Mar 15:00
Re: [Cython] PATCH: use function pointer arguments in import/export api functions
Stefan, is this the only warning you get related to strict aliasing? No warnings at all on those lines where __Pyx_ExportFunction is called?? If that is the only warning, they I can write a better patch. On Fri, Feb 27, 2009 at 7:21 PM, Stefan Behnel <stefan_ml@...> wrote: > Hi, > > Lisandro Dalcin wrote: >> Just to prevent this: >> warning: ISO C forbids conversion of function pointer to object pointer type > > with this patch applied, I now get a warning on this line: > > p = *(void **)&f; > > src/lxml/lxml.etree.c: In function '__Pyx_ExportFunction': > > > src/lxml/lxml.etree.c:148416: warning: dereferencing type-punned pointer > will break strict-aliasing rules > > > This needs fixing, I guess. That said, I'm more in favour of enabling clean > strict-aliasing than to be strictly C89 compliant, unless we can have both. :) > > Stefan > > _______________________________________________(Continue reading)
RSS Feed