Re: [ft-devel] [RFC PATCH] Fix strict-aliasing warning
Call ft_new_glyph with a real glyph, not casting bitmap and set bitmap only after that call. Applied, with slight modifications. Thanks! Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org
[ft-devel] [RFC PATCH] Fix strict-aliasing warning
Building with gcc-4.4.5 and -Os give this warning /usr/src/freetype-2.4.10/src/base/ftglyph.c: In function 'FT_Glyph_To_Bitmap': /usr/src/freetype-2.4.10/src/base/ftglyph.c:296: warning: dereferencing pointer 'bitmap.17' does break strict-aliasing rules