[ft-devel] missing 'const' on tt_post_default_names causes problems with writable static data

2008-10-15 Thread Graham Asher
Here's another small problem I found when porting to 2.3.7. There's a
missing 'const' in the declaration of the array tt_post_default_names. It
causes the pointers to be non-const, and that creates 1032 (4 * 258) bytes
of writable static data, which prevents builds from working for several
platforms including Symbian OS.

The fix is (line 67 of ttpost.c):

static const FT_String*  tt_post_default_names[258] =
-   static const FT_String* const  tt_post_default_names[258] =

Best regards,

Graham




___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] missing 'const' on tt_post_default_names causes problems with writable static data

2008-10-15 Thread Werner LEMBERG

 static const FT_String*  tt_post_default_names[258] =
 -   static const FT_String* const  tt_post_default_names[258] =

Applied, thanks.


Werner


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel