freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Bug on PowerPC: Illegal Intruction in FT_Get_Name_Index (


From: Behdad Esfahbod
Subject: Re: [ft-devel] Bug on PowerPC: Illegal Intruction in FT_Get_Name_Index (worksforme)
Date: Tue, 24 May 2005 10:27:34 -0400 (EDT)

On Tue, 24 May 2005, Werner LEMBERG wrote:

>
> > Very nice that it compiles under gcc and g++ with no warning,
> > except for the two you mentioned before (-pedantic only):
>
> Uh, oh, those two warnings are still there for your compiler?  Then
> your double-cast patch has no effect :-( I'm not able to verify that
> because I don't get any warning with 3.3.3 with and without your
> change.

No, double casting solves the error problem on C++, but no matter
what you do, function pointers and data pointers don't mix in the
standard.  To be honset it's really not a warning, just saying
that the standard does not allow this kind of things.  You don't
get these two with -pedantic?  Mine is 3.4.3 from FC3 updates.

> > What are you doing in other modules, they don't have this problem?
>
> The code is specific to the sfnt module.

Right.  But why does it really need to return two functions with
completely different signatures?  And another question, where is
output returned by this function used?  AFAIU there should be the
same warning somewhere else when you cast the void* back to a
function pointer, unless there's no code that uses this function
(directly or indirectly) in the FreeType code.  Is it the case?

>     Werner

--behdad
http://behdad.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]