summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/libttf/gcache.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-19 09:30:34 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-19 09:30:34 +0000
commit54cec0cfbcec8404e4d88d707424cf823754d730 (patch)
treef6fe4974336f16698eb001baa16737d50a4226b9 /Build/source/texk/ttfdump/libttf/gcache.c
parent09f900b7ba423993554547fbab30f295b12cb4c6 (diff)
enable compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@13831 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttfdump/libttf/gcache.c')
-rw-r--r--Build/source/texk/ttfdump/libttf/gcache.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/texk/ttfdump/libttf/gcache.c b/Build/source/texk/ttfdump/libttf/gcache.c
index d926bebd680..7ecdb0a8ed7 100644
--- a/Build/source/texk/ttfdump/libttf/gcache.c
+++ b/Build/source/texk/ttfdump/libttf/gcache.c
@@ -103,7 +103,9 @@ static void ttfFreeCacheData(TTFontPtr font);
static void ttfInsertBST(TTFontPtr font,GlyphCachePtr gcache);
static GlyphCachePtr ttfSearchBST(TTFontPtr font,ULONG offset);
static void ttfDeleteBST(TTFontPtr font,ULONG offset);
+#ifdef MERGEDELETE
static void merge(GlyphCachePtr *root);
+#endif
static void copy(GlyphCachePtr *root);
void ttfInitGlyphCache(TTFontPtr font)
@@ -253,8 +255,7 @@ static void ttfInitCacheData(TTFontPtr font)
cur->glyf.flags = tmp->glyf.flags + maxPoints;
cur->glyf.xCoordinates = tmp->glyf.xCoordinates + maxPoints;
cur->glyf.yCoordinates = tmp->glyf.yCoordinates + maxPoints;
- tmp = cur;
- cur = cur++;
+ tmp = cur++;
}
}
static void ttfFreeCacheData(TTFontPtr font)
@@ -374,6 +375,7 @@ static void ttfDeleteBST(TTFontPtr font,ULONG offset)
}
+#ifdef MERGEDELETE
static void merge(GlyphCachePtr *root)
{
GlyphCachePtr tmp;
@@ -395,6 +397,7 @@ static void merge(GlyphCachePtr *root)
*root = (*root)->left;
}
}
+#endif
static void copy(GlyphCachePtr *root)
{
GlyphCachePtr tmp, parent;