freetype
[Top][All Lists]
Advanced

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

[ft] strict aliasing warnings


From: apodtele
Subject: [ft] strict aliasing warnings
Date: Mon, 15 Jan 2007 08:37:48 -0500

On Fedora Core 6 freetype CVS compliles with a few warnings. This is
"almost" gcc 4.1.2.

gcc -pedantic -ansi -I/root/freetype2/objs -I./builds/unix
-I/root/freetype2/include -c -Wall -O2 -DFT_CONFIG_OPTION_SYSTEM_ZLIB
"-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY
"-DFT_CONFIG_MODULES_H=<ftmodule.h>" -I/root/freetype2/src/sfnt
/root/freetype2/src/sfnt/sfnt.c  -fPIC -DPIC -o
/root/freetype2/objs/.libs/sfnt.o
In file included from /root/freetype2/src/sfnt/sfnt.c:23:
/root/freetype2/src/sfnt/ttmtx.c: In function 'tt_face_load_hmtx':
/root/freetype2/src/sfnt/ttmtx.c:130: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/root/freetype2/src/sfnt/ttmtx.c:131: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/root/freetype2/src/sfnt/ttmtx.c:145: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/root/freetype2/src/sfnt/ttmtx.c:146: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/root/freetype2/src/sfnt/ttmtx.c: In function 'tt_face_load_hhea':
/root/freetype2/src/sfnt/ttmtx.c:286: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/root/freetype2/src/sfnt/ttmtx.c: In function 'tt_face_get_metrics':
/root/freetype2/src/sfnt/ttmtx.c:419: warning: dereferencing
type-punned pointer will break strict-aliasing rules

gcc -pedantic -ansi -I/root/freetype2/objs -I./builds/unix
-I/root/freetype2/include -c -Wall -O2 -DFT_CONFIG_OPTION_SYSTEM_ZLIB
"-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY
"-DFT_CONFIG_MODULES_H=<ftmodule.h>" -I/root/freetype2/src/pshinter
/root/freetype2/src/pshinter/pshinter.c  -fPIC -DPIC -o
/root/freetype2/objs/.libs/pshinter.o
In file included from /root/freetype2/src/pshinter/pshinter.c:25:
/root/freetype2/src/pshinter/pshmod.c: In function 'ps_hinter_init':
/root/freetype2/src/pshinter/pshmod.c:61: warning: type-punning to
incomplete type might break strict-aliasing rules
/root/freetype2/src/pshinter/pshmod.c:64: warning: type-punning to
incomplete type might break strict-aliasing rules

gcc -pedantic -ansi -I/root/freetype2/objs -I./builds/unix
-I/root/freetype2/include -c -Wall -O2 -DFT_CONFIG_OPTION_SYSTEM_ZLIB
"-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY
"-DFT_CONFIG_MODULES_H=<ftmodule.h>" -I/root/freetype2/src/cache
/root/freetype2/src/cache/ftcache.c  -fPIC -DPIC -o
/root/freetype2/objs/.libs/ftcache.o
In file included from /root/freetype2/src/cache/ftcache.c:24:
/root/freetype2/src/cache/ftccache.c: In function 'ftc_node_mru_link':
/root/freetype2/src/cache/ftccache.c:49: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/root/freetype2/src/cache/ftccache.c: In function 'ftc_node_mru_unlink':
/root/freetype2/src/cache/ftccache.c:60: warning: dereferencing
type-punned pointer will break strict-aliasing rules
In file included from /root/freetype2/src/cache/ftcache.c:25:
/root/freetype2/src/cache/ftccmap.c: In function 'FTC_CMapCache_Lookup':
/root/freetype2/src/cache/ftccmap.c:363: warning: dereferencing
type-punned pointer will break strict-aliasing rules
In file included from /root/freetype2/src/cache/ftcache.c:29:
/root/freetype2/src/cache/ftcbasic.c: In function 'FTC_ImageCache_Lookup':
/root/freetype2/src/cache/ftcbasic.c:357: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/root/freetype2/src/cache/ftcbasic.c: In function 'FTC_SBitCache_Lookup':
/root/freetype2/src/cache/ftcbasic.c:625: warning: dereferencing
type-punned pointer will break strict-aliasing rules




reply via email to

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