[gobject-introspection] Fix two compilation warnings
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Fix two compilation warnings
- Date: Mon, 19 Jul 2010 21:48:37 +0000 (UTC)
commit 96b8dcdac8c0ba951fb84b3cd6a4bde94176997a
Author: Colin Walters <walters verbum org>
Date: Mon Jul 19 17:48:17 2010 -0400
Fix two compilation warnings
girepository/gitypelib.c | 2 +-
tools/generate.c | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c
index 5469e8b..ef87c0e 100644
--- a/girepository/gitypelib.c
+++ b/girepository/gitypelib.c
@@ -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;
}
diff --git a/tools/generate.c b/tools/generate.c
index b456901..395caff 100644
--- a/tools/generate.c
+++ b/tools/generate.c
@@ -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 },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]