Silence compiler warnings.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 28 Nov 2005 20:33:53 +0000 (20:33 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 28 Nov 2005 20:33:53 +0000 (20:33 +0000)
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.

gobject/ChangeLog
gobject/glib-genmarshal.c
gobject/gobject-query.c
gobject/gobjectnotifyqueue.c

index 3b49bac..1dd51cc 100644 (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>
 
        * gboxed.h: Declare g_hash_table_get_type.
index 1403fb8..102be18 100644 (file)
@@ -622,7 +622,7 @@ main (int   argc,
 
   /* add standard marshallers of the GObject library */
   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]);
        
index 5b4ff71..6934748 100644 (file)
@@ -122,7 +122,7 @@ main (gint   argc,
   GLogLevelFlags fatal_mask;
   gboolean gen_froots = 0;
   gboolean gen_tree = 0;
-  guint i;
+  gint i;
   gchar *iindent = "";
 
   f_out = stdout;
index e02e6d0..65c8e95 100644 (file)
@@ -106,7 +106,7 @@ g_object_notify_queue_thaw (GObject            *object,
   for (slist = nqueue->pspecs; slist; slist = slist->next)
     {
       GParamSpec *pspec = slist->data;
-      gint i = 0;
+      guint i = 0;
 
       /* dedup, make pspecs in the list unique */
     redo_dedup_check: