* src/base/ftobjs.c (FT_Load_Glyph): Fix signature of `pixel_modes'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
diff --git a/ChangeLog b/ChangeLog
index 2f94ffc..be867e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2018-05-14 Werner Lemberg <wl@gnu.org>
+ * src/base/ftobjs.c (FT_Load_Glyph): Fix signature of `pixel_modes'.
+
+2018-05-14 Werner Lemberg <wl@gnu.org>
+
Provide dummy functions if `TT_CONFIG_OPTION_SFNT_NAMES' is not set.
* src/base/ftsnames.c [!TT_CONFIG_OPTION_SFNT_NAMES]: Implement it.
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 2731903..3590ce1 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -1026,15 +1026,17 @@
#ifdef FT_DEBUG_LEVEL_TRACE
{
- const char* pixel_modes[] = { "none",
- "monochrome bitmap",
- "gray 8-bit bitmap",
- "gray 2-bit bitmap",
- "gray 4-bit bitmap",
- "LCD 8-bit bitmap",
- "vertical LCD 8-bit bitmap",
- "BGRA 32-bit color image bitmap"
- };
+ static const char* const pixel_modes[] =
+ {
+ "none",
+ "monochrome bitmap",
+ "gray 8-bit bitmap",
+ "gray 2-bit bitmap",
+ "gray 4-bit bitmap",
+ "LCD 8-bit bitmap",
+ "vertical LCD 8-bit bitmap",
+ "BGRA 32-bit color image bitmap"
+ };
FT_TRACE5(( "FT_Load_Glyph: index %d, flags 0x%x\n",