* src/base/ftmac.c (FT_New_Face_From_SFNT): s/rlen/sfnt_size/ to make it compile. * include/freetype/internal/psaux.h, src/truetype/ttgload.h: s/index/idx/ to fix compiler warnings. * src/sfnt/ttcmap0.c (tt_face_build_cmaps): Use more `volatile' to fix compiler warning. * src/gzip/ftgzip.c (BUILDFIXED): Removed. * src/gzip/inftrees.c (inflate_trees_fixed) [!BUILDFIXED]: Use FT_UNUSED to remove compiler warning.
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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
diff --git a/ChangeLog b/ChangeLog
index 7c012a0..1503db3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2003-06-07 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftmac.c (FT_New_Face_From_SFNT): s/rlen/sfnt_size/ to
+ make it compile.
+
+2002-06-07 Detlef Würkner <TetiSoft@apg.lahn.de>
+
+ * include/freetype/internal/psaux.h, src/truetype/ttgload.h:
+ s/index/idx/ to fix compiler warnings.
+
+ * src/sfnt/ttcmap0.c (tt_face_build_cmaps): Use more `volatile' to
+ fix compiler warning.
+
+ * src/gzip/ftgzip.c (BUILDFIXED): Removed.
+ * src/gzip/inftrees.c (inflate_trees_fixed) [!BUILDFIXED]: Use
+ FT_UNUSED to remove compiler warning.
+
2003-06-06 Werner Lemberg <wl@gnu.org>
* include/freetype/ftstroker.h: Renamed to...
@@ -193,7 +210,7 @@
* src/pshinter/pshglob.c, src/pshinter/pshglob.h
(psh_globals_set_scale): Make it a local function.
- * test/gview.c: Fix remaming ps3->ps typo.
+ * test/gview.c: Fix renaming ps3->ps typo.
Formatting.
2003-05-29 Werner Lemberg <wl@gnu.org>
diff --git a/include/freetype/internal/psaux.h b/include/freetype/internal/psaux.h
index 77cbab6..d7f2c26 100644
--- a/include/freetype/internal/psaux.h
+++ b/include/freetype/internal/psaux.h
@@ -71,7 +71,7 @@ FT_BEGIN_HEADER
FT_Error
(*add)( PS_Table table,
- FT_Int index,
+ FT_Int idx,
void* object,
FT_PtrDist length );
diff --git a/src/base/ftmac.c b/src/base/ftmac.c
index 2b29882..04c03d9 100644
--- a/src/base/ftmac.c
+++ b/src/base/ftmac.c
@@ -607,10 +607,10 @@
HUnlock( sfnt );
ReleaseResource( sfnt );
- is_cff = rlen > 4 && sfnt_data[0] == 'O' &&
- sfnt_data[1] == 'T' &&
- sfnt_data[2] == 'T' &&
- sfnt_data[3] == 'O';
+ is_cff = sfnt_size > 4 && sfnt_data[0] == 'O' &&
+ sfnt_data[1] == 'T' &&
+ sfnt_data[2] == 'T' &&
+ sfnt_data[3] == 'O';
return open_face_from_buffer( library,
sfnt_data,
diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c
index d495800..1c2dda0 100644
--- a/src/gzip/ftgzip.c
+++ b/src/gzip/ftgzip.c
@@ -42,7 +42,6 @@
/* original ZLib. */
#define NO_DUMMY_DECL
-#define BUILDFIXED /* save code size */
#define MY_ZCALLOC
#include "zlib.h"
diff --git a/src/gzip/inftrees.c b/src/gzip/inftrees.c
index c3fdc27..2bceb46 100644
--- a/src/gzip/inftrees.c
+++ b/src/gzip/inftrees.c
@@ -451,6 +451,8 @@ z_streamp z /* for memory allocation */
ZFREE(z, c);
fixed_built = 1;
}
+#else
+ FT_UNUSED(z);
#endif
*bl = fixed_bl;
*bd = fixed_bd;
diff --git a/src/sfnt/ttcmap0.c b/src/sfnt/ttcmap0.c
index 90729aa..6c0e80e 100644
--- a/src/sfnt/ttcmap0.c
+++ b/src/sfnt/ttcmap0.c
@@ -1835,7 +1835,7 @@
if ( offset && table + offset + 2 < limit )
{
FT_Byte* cmap = table + offset;
- FT_UInt format = TT_PEEK_USHORT( cmap );
+ volatile FT_UInt format = TT_PEEK_USHORT( cmap );
const TT_CMap_Class* volatile pclazz = tt_cmap_classes;
TT_CMap_Class clazz;
diff --git a/src/truetype/ttgload.h b/src/truetype/ttgload.h
index 0409713..36c93da 100644
--- a/src/truetype/ttgload.h
+++ b/src/truetype/ttgload.h
@@ -4,7 +4,7 @@
/* */
/* TrueType Glyph Loader (specification). */
/* */
-/* Copyright 1996-2001, 2002 by */
+/* Copyright 1996-2001, 2002, 2003 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -33,7 +33,7 @@ FT_BEGIN_HEADER
FT_LOCAL( void )
TT_Get_Metrics( TT_HoriHeader* header,
- FT_UInt index,
+ FT_UInt idx,
FT_Short* bearing,
FT_UShort* advance );