* src/base/ftrfork.c (raccess_guess_apple_generic): Mark `version_number' and `entry_length' as unused. (raccess_guess_linux_double_from_file_name): Remove `memory'. (raccess_make_file_name): Mark `error' as unused. * src/bdf/bdflib.c (_bdf_parse_properties): Remove `memory'. * src/cid/cidobjs.c (cid_face_init): Remove `psnames'. * src/sfnt/sfobjs.c (sfnt_load_face): Remove `memory'. * src/truetype/ttgxvar.c (ft_var_readpackedpoints, ft_var_readpackeddeltas, ft_var_load_avar): Mark `error' as unused.
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 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
diff --git a/src/base/ftrfork.c b/src/base/ftrfork.c
index c9dbe4a..50dcf85 100644
--- a/src/base/ftrfork.c
+++ b/src/base/ftrfork.c
@@ -4,7 +4,7 @@
/* */
/* Embedded resource forks accessor (body). */
/* */
-/* Copyright 2004 by */
+/* Copyright 2004, 2005 by */
/* Masatake YAMATO and Redhat K.K. */
/* */
/* FT_Raccess_Get_HeaderInfo() and raccess_guess_darwin_hfsplus() are */
@@ -569,19 +569,21 @@
{
FT_Int32 magic_from_stream;
FT_Error error;
- FT_Int32 version_number;
+ FT_Int32 version_number = 0;
FT_UShort n_of_entries;
int i;
- FT_UInt32 entry_id, entry_offset, entry_length;
+ FT_UInt32 entry_id, entry_offset, entry_length = 0;
const FT_UInt32 resource_fork_entry_id = 0x2;
FT_UNUSED( library );
FT_UNUSED( base_file_name );
+ FT_UNUSED( version_number );
+ FT_UNUSED( entry_length );
- if ( FT_READ_LONG ( magic_from_stream ) )
+ if ( FT_READ_LONG( magic_from_stream ) )
return error;
if ( magic_from_stream != magic )
return FT_Err_Unknown_File_Format;
@@ -625,15 +627,12 @@
char * file_name,
FT_Long *result_offset )
{
- FT_Memory memory;
FT_Open_Args args2;
FT_Stream stream2;
char * nouse = NULL;
FT_Error error;
- memory = library->memory;
-
args2.flags = FT_OPEN_PATHNAME;
args2.pathname = file_name;
error = FT_Stream_New( library, &args2, &stream2 );
@@ -658,7 +657,10 @@
char* tmp;
const char* slash;
unsigned new_length;
- FT_ULong error;
+ FT_ULong error = FT_Err_Ok;
+
+ FT_UNUSED( error );
+
new_length = ft_strlen( original_name ) + ft_strlen( insertion );
if ( FT_ALLOC( new_name, new_length + 1 ) )
diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c
index c7064f2..31100ed 100644
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -1847,7 +1847,6 @@
char* name;
char* value;
char nbuf[128];
- FT_Memory memory;
FT_Error error = BDF_Err_Ok;
FT_UNUSED( lineno );
@@ -1856,8 +1855,6 @@
next = (_bdf_line_func_t *)call_data;
p = (_bdf_parse_t *) client_data;
- memory = p->font->memory;
-
/* Check for the end of the properties. */
if ( ft_memcmp( line, "ENDPROPERTIES", 13 ) == 0 )
{
diff --git a/src/cid/cidobjs.c b/src/cid/cidobjs.c
index 691ec17..3fb47bc 100644
--- a/src/cid/cidobjs.c
+++ b/src/cid/cidobjs.c
@@ -4,7 +4,7 @@
/* */
/* CID objects manager (body). */
/* */
-/* Copyright 1996-2001, 2002, 2003, 2004 by */
+/* Copyright 1996-2001, 2002, 2003, 2004, 2005 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -298,11 +298,10 @@
FT_Int num_params,
FT_Parameter* params )
{
- CID_Face face = (CID_Face)cidface;
- FT_Error error;
- FT_Service_PsCMaps psnames;
- PSAux_Service psaux;
- PSHinter_Service pshinter;
+ CID_Face face = (CID_Face)cidface;
+ FT_Error error;
+ PSAux_Service psaux;
+ PSHinter_Service pshinter;
FT_UNUSED( num_params );
FT_UNUSED( params );
@@ -311,8 +310,6 @@
cidface->num_faces = 1;
- FT_FACE_FIND_GLOBAL_SERVICE( face, psnames, POSTSCRIPT_CMAPS );
-
psaux = (PSAux_Service)face->psaux;
if ( !psaux )
{
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 16859cc..e2d2a17 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -529,11 +529,8 @@
{
FT_Face root = &face->root;
FT_Int32 flags = root->face_flags;
- FT_Memory memory;
- memory = root->memory;
-
/*********************************************************************/
/* */
/* Compute face flags. */
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index 53cd2a2..fe5eaa3 100644
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -134,7 +134,9 @@
FT_Int j;
FT_Int first;
FT_Memory memory = stream->memory;
- FT_Error error;
+ FT_Error error = TT_Err_Ok;
+
+ FT_UNUSED( error );
*point_cnt = n = FT_GET_BYTE();
@@ -210,7 +212,9 @@
FT_Int i;
FT_Int j;
FT_Memory memory = stream->memory;
- FT_Error error;
+ FT_Error error = TT_Err_Ok;
+
+ FT_UNUSED( error );
if ( FT_NEW_ARRAY( deltas, delta_cnt ) )
@@ -276,12 +280,14 @@
FT_Memory memory = stream->memory;
GX_Blend blend = face->blend;
GX_AVarSegment segment;
- FT_Error error;
+ FT_Error error = TT_Err_Ok;
FT_ULong version;
FT_Long axisCount;
FT_Int i, j;
FT_ULong table_len;
+ FT_UNUSED( error );
+
blend->avar_checked = TRUE;
if ( (error = face->goto_table( face, TTAG_avar, stream, &table_len )) != 0 )