diff options
author | Werner Lemberg <wl@gnu.org> | 2000-07-27 11:20:20 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2000-07-27 11:20:20 +0000 |
commit | 321cd27d0f89f8646c95218b16dca4a3c02d7f17 (patch) | |
tree | 3fd3a8e6a9ef6298a631223657e3c86c74094912 /src/truetype | |
parent | 796f9de26235f753aea8af8d09e19ed660f235c9 (diff) | |
download | freetype2-321cd27d0f89f8646c95218b16dca4a3c02d7f17.tar.gz |
Removing compiler warnings about unused portions of code.
Now unix.in uses absolute paths also to overcome problems with libtool.
To do that in a consistent way I had to modify the rules how to handle
$OBJ_DIR (and consequently $LIB_DIR): You should set $OBJ_DIR explicitly
on the command line (or environment).
Diffstat (limited to 'src/truetype')
-rw-r--r-- | src/truetype/ttgload.c | 4 | ||||
-rw-r--r-- | src/truetype/ttobjs.c | 5 | ||||
-rw-r--r-- | src/truetype/ttobjs.h | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index e9b87fa67..6823cb12f 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -659,7 +659,11 @@ FT_Error load_truetype_glyph( TT_Loader* loader, FT_UInt glyph_index ) { + +#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER FT_Stream stream = loader->stream; +#endif + FT_Error error; TT_Face face = (TT_Face)loader->face; FT_ULong offset; diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c index 2ba715dc1..b47736638 100644 --- a/src/truetype/ttobjs.c +++ b/src/truetype/ttobjs.c @@ -61,12 +61,15 @@ #define FT_COMPONENT trace_ttobjs +#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER + /*************************************************************************/ /* */ /* GLYPH ZONE FUNCTIONS */ /* */ /*************************************************************************/ + /*************************************************************************/ /* */ /* <Function> */ @@ -141,6 +144,8 @@ return error; } +#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */ + /*************************************************************************/ /* */ diff --git a/src/truetype/ttobjs.h b/src/truetype/ttobjs.h index 3e55de3cb..bb00d08bf 100644 --- a/src/truetype/ttobjs.h +++ b/src/truetype/ttobjs.h @@ -107,6 +107,8 @@ } TT_GraphicsState; +#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER + LOCAL_DEF void TT_Done_GlyphZone( TT_GlyphZone* zone ); LOCAL_DEF FT_Error TT_New_GlyphZone( FT_Memory memory, @@ -114,6 +116,8 @@ FT_Short maxContours, TT_GlyphZone* zone ); +#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */ + /*************************************************************************/ /* */ |