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 <[email protected]> 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
>
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to