Fix two compilation warnings
authorColin Walters <walters@verbum.org>
Mon, 19 Jul 2010 21:48:17 +0000 (17:48 -0400)
committerColin Walters <walters@verbum.org>
Mon, 19 Jul 2010 21:48:17 +0000 (17:48 -0400)
girepository/gitypelib.c
tools/generate.c

index 5469e8b..ef87c0e 100644 (file)
@@ -314,7 +314,7 @@ validate_header_basic (const guint8   *memory,
                   G_TYPELIB_ERROR,
                   G_TYPELIB_ERROR_INVALID_HEADER,
                   "Typelib size %" G_GSIZE_FORMAT " does not match %" G_GSIZE_FORMAT,
-                  header->size, len);
+                  (gsize) header->size, len);
       return FALSE;
     }
 
index b456901..395caff 100644 (file)
@@ -41,7 +41,6 @@ main (int argc, char *argv[])
   GError *error = NULL;
   gboolean needs_prefix;
   gint i;
-  GTypelib *data;
   GOptionEntry options[] =
     {
       { "shlib", 0, 0, G_OPTION_ARG_NONE, &shlib, "handle typelib embedded in shlib", NULL },