b26d18
--- ttmkfdir-3.0.9/encoding.l~	2005-08-03 19:33:07.000000000 +0900
b26d18
+++ ttmkfdir-3.0.9/encoding.l	2005-08-03 21:52:15.000000000 +0900
b26d18
@@ -115,7 +115,7 @@
b26d18
     }
b26d18
     
b26d18
     /* avoid a crash issue */
b26d18
-    if (cur_enc->size < i2)
b26d18
+    if ((int) (cur_enc->size) < i2)
b26d18
 	cur_enc->size = i2;
b26d18
     if (!is_created_map)
b26d18
 	create_mapping();
b26d18
@@ -127,8 +127,8 @@
b26d18
 }
b26d18
 
b26d18
 <INSIDE_MAP_BLOCK>{NUMBER}({WHITESPACES}{NUMBER}){0,2} {
b26d18
-    unsigned int start_range;
b26d18
-    int numbers[3], i = 0, end_range, target, res;
b26d18
+    unsigned int start_range = 0, i = 0, end_range = 0;
b26d18
+    int numbers[3], target = 0, res;
b26d18
     char *startptr;
b26d18
     char *endptr = yytext;
b26d18
 
b26d18
--- ttmkfdir-3.0.9/commandline.cpp~	2002-12-09 17:29:11.000000000 +0900
b26d18
+++ ttmkfdir-3.0.9/commandline.cpp	2005-08-03 21:12:40.000000000 +0900
b26d18
@@ -1,6 +1,8 @@
b26d18
 #include <cstdlib>
b26d18
 
b26d18
+#ifndef _GNU_SOURCE
b26d18
 #define _GNU_SOURCE
b26d18
+#endif
b26d18
 #include <getopt.h>
b26d18
 
b26d18
 #include "commandline.h"
b26d18
--- ttmkfdir-3.0.9/ttmkfdir.cpp~	2003-01-20 08:33:11.000000000 +0900
b26d18
+++ ttmkfdir-3.0.9/ttmkfdir.cpp	2005-08-03 21:08:43.000000000 +0900
b26d18
@@ -76,7 +76,7 @@
b26d18
 	return 1;
b26d18
     }
b26d18
 
b26d18
-    fprintf (output, "%d\n", fontdir.size ());
b26d18
+    fprintf (output, "%d\n", (int)(fontdir.size ()));
b26d18
 
b26d18
     for (vector<string>::const_iterator i = fontdir.begin (); i != fontdir.end (); i++) {
b26d18
 	fprintf (output, "%s\n", i->c_str ());
b26d18
--- ttmkfdir-3.0.9/ttf.cpp~	2005-08-03 19:33:07.000000000 +0900
b26d18
+++ ttmkfdir-3.0.9/ttf.cpp	2005-08-03 21:31:48.000000000 +0900
b26d18
@@ -533,7 +533,7 @@
b26d18
 const char *
b26d18
 Face::Weight (void) const
b26d18
 {
b26d18
-    const char *result;
b26d18
+    const char *result = NULL;
b26d18
     
b26d18
     if (cmdline::instance()->option ("panose") && ((result = PanoseWeight ()) != 0)) {
b26d18
 	return result;
b26d18
@@ -614,7 +614,7 @@
b26d18
 const char *
b26d18
 Face::Width (void) const
b26d18
 {
b26d18
-    const char *result;
b26d18
+    const char *result = NULL;
b26d18
     
b26d18
     if (cmdline::instance()->option ("panose") && ((result = PanoseWidth ()) != 0)) {
b26d18
 	return result;
b26d18
--- ttmkfdir-3.0.9/encoding.cpp~	2005-08-03 19:33:07.000000000 +0900
b26d18
+++ ttmkfdir-3.0.9/encoding.cpp	2005-08-03 21:31:44.000000000 +0900
b26d18
@@ -121,7 +121,7 @@
b26d18
 
b26d18
     NumericMapping *m = new NumericMapping (size, b->mapdata.platform, b->mapdata.encoding);
b26d18
 
b26d18
-    for (int i = 0; i < size; i++)
b26d18
+    for (unsigned int i = 0; i < size; i++)
b26d18
 	(*m)[i] = b->mapdata.mappingtable[i];
b26d18
 
b26d18
     AddMapping (m);