ref: 35ca3426ebfd290956dfd79e0e5c27ff1c9db6d9
parent: fd9777e9ed0ddb1d15b46ebc754cca1aefc73bee
author: Werner Lemberg <[email protected]>
date: Mon Jul 31 08:14:27 EDT 2000
Fixing gcc warnings on Solaris.
--- 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];
--- 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 == '_' );
}
--- 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++ )
--- 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 == '_' ) );
}
--- 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++ )