forked from minhngoc25a/freetype2
Fixing gcc warnings on Solaris.
This commit is contained in:
parent
af753548e0
commit
1376fe7841
|
@ -200,7 +200,7 @@
|
||||||
if ( index && index->count > element )
|
if ( index && index->count > element )
|
||||||
{
|
{
|
||||||
/* compute start and end offsets */
|
/* compute start and end offsets */
|
||||||
FT_ULong off1, off2;
|
FT_ULong off1, off2 = 0;
|
||||||
|
|
||||||
|
|
||||||
off1 = index->offsets[element];
|
off1 = index->offsets[element];
|
||||||
|
|
|
@ -267,9 +267,9 @@
|
||||||
static
|
static
|
||||||
int is_alpha( char c )
|
int is_alpha( char c )
|
||||||
{
|
{
|
||||||
return ( isalnum( c ) ||
|
return ( isalnum( (int)c ) ||
|
||||||
c == '.' ||
|
c == '.' ||
|
||||||
c == '_' );
|
c == '_' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -439,7 +439,7 @@
|
||||||
{
|
{
|
||||||
FT_Long result = 0;
|
FT_Long result = 0;
|
||||||
FT_Byte* cur = *cursor;
|
FT_Byte* cur = *cursor;
|
||||||
FT_Byte c, d;
|
FT_Byte c = '\0', d;
|
||||||
|
|
||||||
|
|
||||||
for ( ; cur < limit; cur++ )
|
for ( ; cur < limit; cur++ )
|
||||||
|
|
|
@ -931,9 +931,9 @@
|
||||||
static
|
static
|
||||||
int is_alpha( char c )
|
int is_alpha( char c )
|
||||||
{
|
{
|
||||||
return ( isalnum( c ) ||
|
return ( isalnum( (int)c ) ||
|
||||||
( c == '.' ) ||
|
( c == '.' ) ||
|
||||||
( c == '_' ) );
|
( c == '_' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -451,7 +451,7 @@
|
||||||
{
|
{
|
||||||
FT_Long result = 0;
|
FT_Long result = 0;
|
||||||
FT_Byte* cur = *cursor;
|
FT_Byte* cur = *cursor;
|
||||||
FT_Byte c, d;
|
FT_Byte c = '\0', d;
|
||||||
|
|
||||||
|
|
||||||
for ( ; cur < limit; cur++ )
|
for ( ; cur < limit; cur++ )
|
||||||
|
|
Loading…
Reference in New Issue