[pango/pango-1-38: 1/3] gen-script-lang-table: Fix compiler warnings



commit dfc6fb3e46d134e6dc567303974e7f0f3eea51fa
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 14 07:36:58 2015 -0500

    gen-script-lang-table: Fix compiler warnings

 tools/gen-script-for-lang.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/tools/gen-script-for-lang.c b/tools/gen-script-for-lang.c
index b3cfa7b..04614b1 100644
--- a/tools/gen-script-for-lang.c
+++ b/tools/gen-script-for-lang.c
@@ -218,8 +218,6 @@ int main (void)
   struct tm *tmp;
   int fc_version;
 
-  g_type_init ();
-
   script_array = g_array_new (FALSE, FALSE, sizeof (LangInfo));
   
 
@@ -287,7 +285,7 @@ int main (void)
       
       g_print ("  { \"%s\", %*s{ ",
               pango_language_to_string (info->lang),
-              max_lang_len - strlen (pango_language_to_string (info->lang)), "");
+              (int)(max_lang_len - strlen (pango_language_to_string (info->lang))), "");
       for (j = 0; j < MAX_SCRIPTS; j++)
        {
          if (!info->scripts[j].freq)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]