summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/libttf
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
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')
-rw-r--r--Build/source/texk/ttfdump/libttf/font.c4
-rw-r--r--Build/source/texk/ttfdump/libttf/gcache.c7
-rw-r--r--Build/source/texk/ttfdump/libttf/stack.c3
-rw-r--r--Build/source/texk/ttfdump/libttf/tabledir.c3
4 files changed, 15 insertions, 2 deletions
diff --git a/Build/source/texk/ttfdump/libttf/font.c b/Build/source/texk/ttfdump/libttf/font.c
index 474d4f008e4..c8b3784a6eb 100644
--- a/Build/source/texk/ttfdump/libttf/font.c
+++ b/Build/source/texk/ttfdump/libttf/font.c
@@ -134,6 +134,8 @@ void ttfFreeOptionalTables(TTFontPtr font)
ttfFreeVMTX(font->vmtx);
}
+#if 0
+/* Not used */
/* make a clone of the origional font
* This is use for fonts that support more than one encoding scheme
*
@@ -152,6 +154,8 @@ TTFontPtr ttfCloneFont(TTFontPtr font)
return newfont;
}
+#endif
+
static void ttfInitInterpreter(TTFontPtr font)
{
ttfInitStorageArea(font);
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;
diff --git a/Build/source/texk/ttfdump/libttf/stack.c b/Build/source/texk/ttfdump/libttf/stack.c
index e47b3b0af09..5ca56deb90a 100644
--- a/Build/source/texk/ttfdump/libttf/stack.c
+++ b/Build/source/texk/ttfdump/libttf/stack.c
@@ -80,6 +80,8 @@ inline SHORT GetSHORT(VirtualMachine *vm)
return 0;
}
}
+#if 0
+/* Not used */
/* read four bytes from the instruction steam */
inline LONG GetLONG(VirtualMachine *vm)
{
@@ -99,3 +101,4 @@ inline LONG GetLONG(VirtualMachine *vm)
return 0;
}
}
+#endif
diff --git a/Build/source/texk/ttfdump/libttf/tabledir.c b/Build/source/texk/ttfdump/libttf/tabledir.c
index 2e2f328beb1..c0c2980191f 100644
--- a/Build/source/texk/ttfdump/libttf/tabledir.c
+++ b/Build/source/texk/ttfdump/libttf/tabledir.c
@@ -99,6 +99,8 @@ TableDirPtr ttfLookUpTableDir(ULONG tagname,TTFontPtr font)
return NULL;
}
+#if 0
+/* Not used */
/* calculate table check sum */
/* can't be done until the data abstraction have been finished */
/* not finished yet */
@@ -119,3 +121,4 @@ ULONG ttfCalcTableCheckSum(ULONG tagname,TTFontPtr font)
return sum;
}
+#endif