removing compiler warnings
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
diff --git a/ChangeLog b/ChangeLog
index 2399828..19c96b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
* include/freetype/internal/tttypes.h: adding comments to some of
the TT_FaceRec fields.
+ * src/sfnt/ttcmap0.c (TT_Build_CMaps): removed compiler warnings
+
2002-03-30 Werner Lemberg <wl@gnu.org>
* include/freetype/t1tables.h (t1_blend_max): Fix typo.
diff --git a/src/sfnt/ttcmap0.c b/src/sfnt/ttcmap0.c
index 0cde857..b079693 100644
--- a/src/sfnt/ttcmap0.c
+++ b/src/sfnt/ttcmap0.c
@@ -1548,10 +1548,10 @@
FT_LOCAL_DEF( FT_Error )
TT_Build_CMaps( TT_Face face )
{
- FT_UInt num_cmaps;
- FT_Byte* table = face->cmap_table;
- FT_Byte* limit = table + face->cmap_size;
- FT_Byte* p = table;
+ FT_Byte* table = face->cmap_table;
+ FT_Byte* limit = table + face->cmap_size;
+ volatile FT_UInt num_cmaps;
+ volatile FT_Byte* p = table;
if ( p + 4 > limit )
return FT_Err_Invalid_Table;
@@ -1580,10 +1580,10 @@
if ( offset && table + offset + 2 < limit )
{
- FT_Byte* cmap = table + offset;
- FT_UInt format = TT_PEEK_USHORT(cmap);
- const TT_CMap_Class* pclazz = tt_cmap_classes;
- TT_CMap_Class clazz;
+ FT_Byte* cmap = table + offset;
+ FT_UInt format = TT_PEEK_USHORT(cmap);
+ volatile const TT_CMap_Class* pclazz = tt_cmap_classes;
+ TT_CMap_Class clazz;
for ( ; *pclazz; pclazz++ )
{