[cairo] Cairo 1.6.4 build failing on AIX 52
mike.shaver at gmail.com
Wed Jun 18 07:56:26 PDT 2008
On Wed, Jun 18, 2008 at 9:45 AM, Carl Worth <cworth at cworth.org> wrote:
> But "pointer of type 'void *' used in arithmetic" looks really bad to
> me. Isn't that something that a compiler could make an error? (I'm not
> looking up what any specifications might have to say on the matter
> now---but it seems like a nasty thing for us to be doing.)
Yes, and I think some compilers have made it an error in the past.
It's undefined behaviour at best, because "void" has no size. Cast to
char * to do byte-based math, per spec and sanity.
More information about the cairo