freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] compiler warnings


From: Behdad Esfahbod
Subject: Re: [ft-devel] compiler warnings
Date: Sun, 22 May 2005 21:35:52 -0400 (EDT)

On Sun, 22 May 2005, Werner LEMBERG wrote:

> I still get those two compiler warnings (from gcc):
>
>   In file included from src/sfnt/sfnt.c:26:
>   src/sfnt/sfdriver.c: In function `sfnt_get_interface':
>   src/sfnt/sfdriver.c:322: warning: ISO C forbids conversion of
>                            function pointer to object pointer type
>   src/sfnt/sfdriver.c:325: warning: ISO C forbids conversion of
>                            function pointer to object pointer type
>
> Anybody an idea how to get rid of them?  Just using `void' instead of
> `void*' fails if a C++ compiler is used for compiling.

See my other message.  You can quiet the C++ compiler by double
casting, but AFAI tested, there's no way to have a generic
function pointer with -pedantic on, and (void*) works otherwise.
Are you doing -pedantic really?

>     Werner

--behdad
http://behdad.org/




reply via email to

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