Fixing gcc warnings on Solaris.

This commit is contained in:
Werner Lemberg 2000-07-31 12:14:27 +00:00
parent af753548e0
commit 1376fe7841
5 changed files with 9 additions and 9 deletions

View File

@ -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];

View File

@ -267,9 +267,9 @@
static
int is_alpha( char c )
{
return ( isalnum( c ) ||
c == '.' ||
c == '_' );
return ( isalnum( (int)c ) ||
c == '.' ||
c == '_' );
}

View File

@ -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++ )

View File

@ -931,9 +931,9 @@
static
int is_alpha( char c )
{
return ( isalnum( c ) ||
( c == '.' ) ||
( c == '_' ) );
return ( isalnum( (int)c ) ||
( c == '.' ) ||
( c == '_' ) );
}

View File

@ -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++ )