[Top][All Lists]
[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: |
Sat, 09 Jan 2010 06:40:56 +0100 (CET) |
> There are still some warnings from the VTK nightly builds:
> <http://www.cdash.org/CDash/buildSummary.php?buildid=510736>
> (search for "freetype")
Thanks.
> I believe this is due to:
>
> #define ALL_POINTS (FT_UShort*)( -1 )
>
> To me, it seems dangerous to have a pointer type that is not a
> pointer. Other than "don't do that", I'm not sure what to suggest
> to workaround this warning. Ideas? This might work:
>
> #define ALL_POINTS (FT_UShort*)( INTPTR_MAX )
>
> But that requires C99.
We don't expect C99.
What about a double cast?
#define ALL_POINTS (FT_UShort*)(void*)( -1 )
Since NULL is normally defined as `(void*)0' I can imagine that the
above works. Can you try this, please?
Werner