Hi,

First congratulations on greate 2.3.0 release! Here is the last piece of 
strict aliasing warnings, it would rock if those could be fixed so -O2 can be 
safely enabled.

src/sfnt/ttmtx.c: In function 'tt_face_load_hmtx':
src/sfnt/ttmtx.c:130: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
src/sfnt/ttmtx.c:131: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
src/sfnt/ttmtx.c:145: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
src/sfnt/ttmtx.c:146: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
src/sfnt/ttmtx.c: In function 'tt_face_load_hhea':
src/sfnt/ttmtx.c:286: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
src/sfnt/ttmtx.c: In function 'tt_face_get_metrics':
src/sfnt/ttmtx.c:419: warning: dereferencing type-punned pointer will break 
strict-aliasing rules


src/pshinter/pshmod.c: In function 'ps_hinter_init':
src/pshinter/pshmod.c:61: warning: type-punning to incomplete type might break 
strict-aliasing rules
src/pshinter/pshmod.c:64: warning: type-punning to incomplete type might break 
strict-aliasing rules

In file included from /src/cache/ftcache.c:25:
src/cache/ftccache.c: In function 'ftc_node_mru_link':
src/cache/ftccache.c:49: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
src/cache/ftccache.c: In function 'ftc_node_mru_unlink':
src/cache/ftccache.c:60: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
In file included from /src/cache/ftcache.c:26:
src/cache/ftccmap.c: In function 'FTC_CMapCache_Lookup':
src/cache/ftccmap.c:363: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
In file included from /src/cache/ftcache.c:30:
src/cache/ftcbasic.c: In function 'FTC_ImageCache_Lookup':
src/cache/ftcbasic.c:357: warning: dereferencing type-punned pointer will 
break strict-aliasing rules
src/cache/ftcbasic.c: In function 'FTC_SBitCache_Lookup':
src/cache/ftcbasic.c:625: warning: dereferencing type-punned pointer will 
break strict-aliasing rules

Of course any howto on fixing those warnings correctly would be appreciated 
too.

Regards,
ismail


_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to