Silence compiler warnings.

2005-11-28  Matthias Clasen  <mclasen@redhat.com>

	* gobjectnotifyqueue.c (g_object_notify_queue_thaw):
	* gobject-query.c (main): Silence compiler warnings.

	* glib-genmarshal.c (main): Use G_N_ELEMENTS.
This commit is contained in:
Matthias Clasen 2005-11-28 20:33:53 +00:00 committed by Matthias Clasen
parent 0f1e8fb313
commit d98433b85e
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2005-11-28 Matthias Clasen <mclasen@redhat.com>
* gobjectnotifyqueue.c (g_object_notify_queue_thaw):
* gobject-query.c (main): Silence compiler warnings.
* glib-genmarshal.c (main): Use G_N_ELEMENTS.
2005-11-27 Matthias Clasen <mclasen@redhat.com> 2005-11-27 Matthias Clasen <mclasen@redhat.com>
* gboxed.h: Declare g_hash_table_get_type. * gboxed.h: Declare g_hash_table_get_type.

View File

@ -622,7 +622,7 @@ main (int argc,
/* add standard marshallers of the GObject library */ /* add standard marshallers of the GObject library */
if (std_includes) if (std_includes)
for (i = 0; i < sizeof (gobject_marshallers) / sizeof (gobject_marshallers[0]); i++) for (i = 0; i < G_N_ELEMENTS (gobject_marshallers); i++)
{ {
gchar *tmp = g_strdup (gobject_marshallers[i]); gchar *tmp = g_strdup (gobject_marshallers[i]);

View File

@ -122,7 +122,7 @@ main (gint argc,
GLogLevelFlags fatal_mask; GLogLevelFlags fatal_mask;
gboolean gen_froots = 0; gboolean gen_froots = 0;
gboolean gen_tree = 0; gboolean gen_tree = 0;
guint i; gint i;
gchar *iindent = ""; gchar *iindent = "";
f_out = stdout; f_out = stdout;

View File

@ -106,7 +106,7 @@ g_object_notify_queue_thaw (GObject *object,
for (slist = nqueue->pspecs; slist; slist = slist->next) for (slist = nqueue->pspecs; slist; slist = slist->next)
{ {
GParamSpec *pspec = slist->data; GParamSpec *pspec = slist->data;
gint i = 0; guint i = 0;
/* dedup, make pspecs in the list unique */ /* dedup, make pspecs in the list unique */
redo_dedup_check: redo_dedup_check: