glib/gdebug.h glib/gutils.c gobject/gtype.c gthread/gthread-posix.c
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 Nov 2004 18:47:12 +0000 (18:47 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 1 Nov 2004 18:47:12 +0000 (18:47 +0000)
2004-11-01  Matthias Clasen  <mclasen@redhat.com>

* glib/gconvert.c:
* glib/gdebug.h
* glib/gutils.c
* gobject/gtype.c
* gthread/gthread-posix.c
* tests/timeloop-closure.c
* tests/timeloop.c: Fix sparse warnings.  (#157014, Kjartan Maraas)

12 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gconvert.c
glib/gdebug.h
glib/gutils.c
gobject/gtype.c
gthread/gthread-posix.c
tests/timeloop-closure.c
tests/timeloop.c

index b4eac73..e53efb3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2004-11-01  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c:
+       * glib/gdebug.h
+       * glib/gutils.c
+       * gobject/gtype.c
+       * gthread/gthread-posix.c
+       * tests/timeloop-closure.c
+       * tests/timeloop.c: Fix sparse warnings.  (#157014, Kjartan Maraas)
+
+2004-11-01  Matthias Clasen  <mclasen@redhat.com>
+
        * glib/goption.c: Documentation updates.
 
        Handle conflicts between options in different groups. (#156808)
index b4eac73..e53efb3 100644 (file)
@@ -1,5 +1,15 @@
 2004-11-01  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c:
+       * glib/gdebug.h
+       * glib/gutils.c
+       * gobject/gtype.c
+       * gthread/gthread-posix.c
+       * tests/timeloop-closure.c
+       * tests/timeloop.c: Fix sparse warnings.  (#157014, Kjartan Maraas)
+
+2004-11-01  Matthias Clasen  <mclasen@redhat.com>
+
        * glib/goption.c: Documentation updates.
 
        Handle conflicts between options in different groups. (#156808)
index b4eac73..e53efb3 100644 (file)
@@ -1,5 +1,15 @@
 2004-11-01  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c:
+       * glib/gdebug.h
+       * glib/gutils.c
+       * gobject/gtype.c
+       * gthread/gthread-posix.c
+       * tests/timeloop-closure.c
+       * tests/timeloop.c: Fix sparse warnings.  (#157014, Kjartan Maraas)
+
+2004-11-01  Matthias Clasen  <mclasen@redhat.com>
+
        * glib/goption.c: Documentation updates.
 
        Handle conflicts between options in different groups. (#156808)
index b4eac73..e53efb3 100644 (file)
@@ -1,5 +1,15 @@
 2004-11-01  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c:
+       * glib/gdebug.h
+       * glib/gutils.c
+       * gobject/gtype.c
+       * gthread/gthread-posix.c
+       * tests/timeloop-closure.c
+       * tests/timeloop.c: Fix sparse warnings.  (#157014, Kjartan Maraas)
+
+2004-11-01  Matthias Clasen  <mclasen@redhat.com>
+
        * glib/goption.c: Documentation updates.
 
        Handle conflicts between options in different groups. (#156808)
index b4eac73..e53efb3 100644 (file)
@@ -1,5 +1,15 @@
 2004-11-01  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/gconvert.c:
+       * glib/gdebug.h
+       * glib/gutils.c
+       * gobject/gtype.c
+       * gthread/gthread-posix.c
+       * tests/timeloop-closure.c
+       * tests/timeloop.c: Fix sparse warnings.  (#157014, Kjartan Maraas)
+
+2004-11-01  Matthias Clasen  <mclasen@redhat.com>
+
        * glib/goption.c: Documentation updates.
 
        Handle conflicts between options in different groups. (#156808)
index 6915893..4566f88 100644 (file)
@@ -1784,7 +1784,7 @@ g_uri_list_extract_uris (const gchar *uri_list)
 
   result = g_new (gchar *, n_uris + 1);
 
-  result[n_uris--] = 0;
+  result[n_uris--] = NULL;
   for (u = uris; u; u = u->next)
     result[n_uris--] = u->data;
 
index dda0213..a77e294 100644 (file)
@@ -53,7 +53,7 @@ typedef enum {
 GLIB_VAR gboolean _g_debug_initialized;
 GLIB_VAR guint _g_debug_flags;
 
-void _g_debug_init () G_GNUC_INTERNAL;
+void _g_debug_init (void) G_GNUC_INTERNAL;
 
 #ifdef __cplusplus
 }
index 3a98543..fef3361 100644 (file)
@@ -1846,7 +1846,7 @@ static gchar **languages = NULL;
  * Since: 2.6
  **/
 G_CONST_RETURN gchar * G_CONST_RETURN * 
-g_get_language_names ()
+g_get_language_names (void)
 {
   G_LOCK (g_utils_global);
 
index cea3900..9a5753b 100644 (file)
@@ -310,7 +310,7 @@ GTypeDebugFlags            _g_type_debug_flags = 0;
 
 /* --- type nodes --- */
 static GHashTable       *static_type_nodes_ht = NULL;
-static TypeNode                *static_fundamental_type_nodes[(G_TYPE_FUNDAMENTAL_MAX >> G_TYPE_FUNDAMENTAL_SHIFT) + 1] = { 0, };
+static TypeNode                *static_fundamental_type_nodes[(G_TYPE_FUNDAMENTAL_MAX >> G_TYPE_FUNDAMENTAL_SHIFT) + 1] = { NULL, };
 static GType            static_fundamental_next = G_TYPE_RESERVED_USER_FIRST;
 
 static inline TypeNode*
index 31dff71..0dcf6bb 100644 (file)
@@ -122,7 +122,7 @@ static gulong g_thread_min_stack_size = 0;
 #if defined(_SC_THREAD_STACK_MIN) || defined (HAVE_PRIORITIES)
 #define HAVE_G_THREAD_IMPL_INIT
 static void 
-g_thread_impl_init()
+g_thread_impl_init(void)
 {
 #ifdef _SC_THREAD_STACK_MIN
   g_thread_min_stack_size = MAX (sysconf (_SC_THREAD_STACK_MIN), 0);
index 176b810..ecbe290 100644 (file)
@@ -135,7 +135,7 @@ input_callback (GIOChannel   *source,
 }
 
 static void
-create_child ()
+create_child (void)
 {
   int pid;
   GIOChannel *in_channels[2];
index 4f0a535..457e74d 100644 (file)
@@ -134,7 +134,7 @@ input_callback (GIOChannel   *source,
 }
 
 static void
-create_child ()
+create_child (void)
 {
   int pid;
   GIOChannel *in_channels[2];