Fixing gcc warnings on Solaris.
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
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++ )