Commit 35ca3426ebfd290956dfd79e0e5c27ff1c9db6d9

Werner Lemberg 2000-07-31T12:14:27

Fixing gcc warnings on Solaris.

diff --git a/src/cff/t2load.c b/src/cff/t2load.c
index 4a77693..5491991 100644
--- a/src/cff/t2load.c
+++ b/src/cff/t2load.c
@@ -200,7 +200,7 @@
     if ( index && index->count > element )
     {
       /* compute start and end offsets */
-      FT_ULong  off1, off2;
+      FT_ULong  off1, off2 = 0;
 
 
       off1 = index->offsets[element];
diff --git a/src/cid/cidload.c b/src/cid/cidload.c
index 1f7c7ae..59eeb0b 100644
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -267,9 +267,9 @@
   static
   int  is_alpha( char  c )
   {
-    return ( isalnum( c ) ||
-             c == '.'     ||
-             c == '_'     );
+    return ( isalnum( (int)c ) ||
+             c == '.'          ||
+             c == '_'          );
   }
 
 
diff --git a/src/cid/cidparse.c b/src/cid/cidparse.c
index 33d3d8a..9c4c4aa 100644
--- a/src/cid/cidparse.c
+++ b/src/cid/cidparse.c
@@ -439,7 +439,7 @@
   {
     FT_Long   result = 0;
     FT_Byte*  cur    = *cursor;
-    FT_Byte   c, d;
+    FT_Byte   c = '\0', d;
 
 
     for ( ; cur < limit; cur++ )
diff --git a/src/type1z/z1load.c b/src/type1z/z1load.c
index 46478d1..59d0e77 100644
--- a/src/type1z/z1load.c
+++ b/src/type1z/z1load.c
@@ -931,9 +931,9 @@
   static
   int  is_alpha( char c )
   {
-    return ( isalnum( c ) ||
-             ( c == '.' ) ||
-             ( c == '_' ) );
+    return ( isalnum( (int)c ) ||
+             ( c == '.' )      ||
+             ( c == '_' )      );
   }
 
 
diff --git a/src/type1z/z1parse.c b/src/type1z/z1parse.c
index 9bc2913..bb70f59 100644
--- a/src/type1z/z1parse.c
+++ b/src/type1z/z1parse.c
@@ -451,7 +451,7 @@
   {
     FT_Long   result = 0;
     FT_Byte*  cur    = *cursor;
-    FT_Byte   c, d;
+    FT_Byte   c = '\0', d;
 
 
     for ( ; cur < limit; cur++ )