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 b4eac73631ef4ea49ab51ac69f68dcf5e94ffc3f..e53efb33c644bb04fa146d1233eba0e18ee07d60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+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.
index b4eac73631ef4ea49ab51ac69f68dcf5e94ffc3f..e53efb33c644bb04fa146d1233eba0e18ee07d60 100644 (file)
@@ -1,3 +1,13 @@
+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.
index b4eac73631ef4ea49ab51ac69f68dcf5e94ffc3f..e53efb33c644bb04fa146d1233eba0e18ee07d60 100644 (file)
@@ -1,3 +1,13 @@
+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.
index b4eac73631ef4ea49ab51ac69f68dcf5e94ffc3f..e53efb33c644bb04fa146d1233eba0e18ee07d60 100644 (file)
@@ -1,3 +1,13 @@
+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.
index b4eac73631ef4ea49ab51ac69f68dcf5e94ffc3f..e53efb33c644bb04fa146d1233eba0e18ee07d60 100644 (file)
@@ -1,3 +1,13 @@
+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.
index 6915893f029438d6a372ede8777bcc88cd0cd8af..4566f88d7f5718fcef127fda6c9c4eb11908811e 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 dda0213201f250d6e009c6e147cfeb9d17b4ffd8..a77e29442212f3ed492dc575f022e3307a1f0f12 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 3a9854312ea29f66426c29c101acc1f460541577..fef336112f39cfa9262b07900685cb6cd9eb0834 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 cea390087c8a33e366637bccde54dae0555efce1..9a5753b0013be2bf49d73262104d1e94f45ad0f6 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 31dff71150f723063fcda1c103ae479aef28fe90..0dcf6bb7033c26f24fb5720e093276b5e792a5ca 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 176b8109f25fa8402cbc2dfec55313ed0dd03dd8..ecbe290877771587f46cd69e05ca32d3305e74c7 100644 (file)
@@ -135,7 +135,7 @@ input_callback (GIOChannel   *source,
 }
 
 static void
-create_child ()
+create_child (void)
 {
   int pid;
   GIOChannel *in_channels[2];
index 4f0a5351d5e63747b284a1fad90efa990f46b389..457e74de72b1b098a7e2fb6cf9188eb0cadbdda8 100644 (file)
@@ -134,7 +134,7 @@ input_callback (GIOChannel   *source,
 }
 
 static void
-create_child ()
+create_child (void)
 {
   int pid;
   GIOChannel *in_channels[2];