freetype
[Top][All Lists]
Advanced

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

Re: [ft] Last piece of strict aliasing warnings


From: Ismail Dönmez
Subject: Re: [ft] Last piece of strict aliasing warnings
Date: Sat, 19 May 2007 12:14:06 +0300
User-agent: KMail/1.9.7

On Wednesday 16 May 2007 18:56:03 you wrote:
> > Here is the last piece of strict aliasing warnings, it would rock if
> > those could be fixed so -O2 can be safely enabled.  [...]
>
> I think I've now removed all such warnings from the CVS.  Please test.

Very nice! Just one aliasing warning with gcc 4.2.0:

In file included from /packages/freetype2/src/sfnt/sfnt.c:24:
/packages/freetype2/src/sfnt/ttmtx.c: In function 'tt_face_get_metrics':
/packages/freetype2/src/sfnt/ttmtx.c:362: warning: dereferencing type-punned 
pointer will break strict-aliasing rules

> > Of course any howto on fixing those warnings correctly would be
> > appreciated too.
>
> Just use an intermediate pointer to avoid the direct casting of a the
> `&' operand.

Thanks for that :)

-- 
Perfect is the enemy of good

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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