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 17:15:43 +0300
User-agent: KMail/1.9.7

On Saturday 19 May 2007 12:14:06 Ismail Dönmez wrote:
> 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

Attached patch should fix it.

Regards,
ismail

-- 
Perfect is the enemy of good

Attachment: aliasing.patch
Description: Text Data

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


reply via email to

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