From 9a32d9b093e73c967ad57c6e8c25bec512e67938 Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Wed, 22 Oct 2008 14:31:58 +0000 Subject: [PATCH] fix some build warnings. 2008-10-22 Lucas Rocha * girepository/girmodule.c, girepository/gtypelib.c, girepository/girparser.[ch]: fix some build warnings. svn path=/trunk/; revision=783 --- girmodule.c | 2 +- girparser.c | 1 + girparser.h | 3 ++- gtypelib.c | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/girmodule.c b/girmodule.c index 382d186ee..6ae868fdd 100644 --- a/girmodule.c +++ b/girmodule.c @@ -74,7 +74,7 @@ g_ir_module_build_typelib (GIrModule *module, { GTypelib *typelib; gsize length; - gint i; + guint i; GList *e; Header *header; DirEntry *entry; diff --git a/girparser.c b/girparser.c index 9ca5225f4..b92bc5482 100644 --- a/girparser.c +++ b/girparser.c @@ -23,6 +23,7 @@ #include #include +#include "girparser.h" #include "girmodule.h" #include "girnode.h" #include "gtypelib.h" diff --git a/girparser.h b/girparser.h index 68b3acf5f..08aecb971 100644 --- a/girparser.h +++ b/girparser.h @@ -26,8 +26,9 @@ G_BEGIN_DECLS -GList *g_ir_parse_string (const gchar *buffer, +GList *g_ir_parse_string (const gchar *namespace, const gchar *const *includes, + const gchar *buffer, gssize length, GError **error); GList *g_ir_parse_file (const gchar *filename, diff --git a/gtypelib.c b/gtypelib.c index 1d3598380..be470a4b0 100644 --- a/gtypelib.c +++ b/gtypelib.c @@ -54,7 +54,7 @@ validate_interface_blob (ValidateContext *ctx, guint32 offset, GError **error); -DirEntry * +static DirEntry * get_dir_entry_checked (GTypelib *typelib, guint16 index, GError **error) @@ -876,7 +876,7 @@ validate_constant_blob (GTypelib *typelib, guint32 offset, GError **error) { - gint value_size[] = { + guint value_size[] = { 0, /* VOID */ 4, /* BOOLEAN */ 1, /* INT8 */