[prev in list] [next in list] [prev in thread] [next in thread]
List: freetype-devel
Subject: Re: [ft-devel] freetype compilation warnings
From: Werner LEMBERG <wl () gnu ! org>
Date: 2010-01-22 11:09:48
Message-ID: 20100122.120948.216925897.wl () gnu ! org
[Download RAW message or body]
>>>#define ALL_POINTS (FT_UShort*)((FT_Byte*)(NULL) - 1);
>>
>>Clever! I'll commit this to VTK and we'll see tomorrow.
>
> Well, this silenced Visual Studio, but now another compiler on another
> machine is complaining:
>
> <http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=514717>
>
> "warning #2061-D: integer operation result is out of range"
>
> I think perhaps it would be better to change this code instead of
> being 'cleaver'. Perhaps instead we could use a struct that
> contains a bool and a pointer. The bool could indicate this special
> ALL_POINTS state.
Can you provide a patch? Or shall we ignore the whole issue, simply
accepting that some compilers emit a harmless warning?
Werner
_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic