freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] freetype compilation warnings


From: Werner LEMBERG
Subject: Re: [ft-devel] freetype compilation warnings
Date: Sun, 20 Dec 2009 18:20:30 +0100 (CET)

>> Just getting rid of _debug_mem_dummy would cause a problem?  Is
>> there another way to create a non-empty file?  How about a useless
>> but harmless #include, like #include <string.h>?
> 
> Ah, I haven't thought of that.  Sounds like a good idea.

Well, after some thinking I now believe that this doesn't work: The
preprocessor removes everything and we thus still have an empty file
to compile.

I've now replaced it with a `typedef'.

>> FTC_GNode_Compare() has 2 parameters:
>>
>>   FT_LOCAL( FT_Bool )
>>   FTC_GNode_Compare( FTC_GNode   gnode,
>>                      FTC_GQuery  gquery );
>>
>> but it's being cast to FTC_Node_CompareFunc which is 3 parameters:
>>
>>   typedef FT_Bool
>>   (*FTC_Node_CompareFunc)( FTC_Node    node,
>>                            FT_Pointer  key,
>>                            FTC_Cache   cache );

Yes, this seems to be the cause.  However, fixing this is not easy
(except providing a new macro which is rather unelegant) -- at least
for me.  Any idea how to work around the warning?


    Werner




reply via email to

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