From 286d84fcb015da87985c6d2d996d76960322b36d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 1 Nov 2004 18:47:12 +0000 Subject: [PATCH] glib/gdebug.h glib/gutils.c gobject/gtype.c gthread/gthread-posix.c 2004-11-01 Matthias Clasen * 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) --- ChangeLog | 10 ++++++++++ ChangeLog.pre-2-10 | 10 ++++++++++ ChangeLog.pre-2-12 | 10 ++++++++++ ChangeLog.pre-2-6 | 10 ++++++++++ ChangeLog.pre-2-8 | 10 ++++++++++ glib/gconvert.c | 2 +- glib/gdebug.h | 2 +- glib/gutils.c | 2 +- gobject/gtype.c | 2 +- gthread/gthread-posix.c | 2 +- tests/timeloop-closure.c | 2 +- tests/timeloop.c | 2 +- 12 files changed, 57 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index b4eac736..e53efb33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2004-11-01 Matthias Clasen + + * 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 * glib/goption.c: Documentation updates. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index b4eac736..e53efb33 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +2004-11-01 Matthias Clasen + + * 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 * glib/goption.c: Documentation updates. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index b4eac736..e53efb33 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,13 @@ +2004-11-01 Matthias Clasen + + * 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 * glib/goption.c: Documentation updates. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index b4eac736..e53efb33 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,13 @@ +2004-11-01 Matthias Clasen + + * 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 * glib/goption.c: Documentation updates. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index b4eac736..e53efb33 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +2004-11-01 Matthias Clasen + + * 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 * glib/goption.c: Documentation updates. diff --git a/glib/gconvert.c b/glib/gconvert.c index 6915893f..4566f88d 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -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; diff --git a/glib/gdebug.h b/glib/gdebug.h index dda02132..a77e2944 100644 --- a/glib/gdebug.h +++ b/glib/gdebug.h @@ -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 } diff --git a/glib/gutils.c b/glib/gutils.c index 3a985431..fef33611 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -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); diff --git a/gobject/gtype.c b/gobject/gtype.c index cea39008..9a5753b0 100644 --- a/gobject/gtype.c +++ b/gobject/gtype.c @@ -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* diff --git a/gthread/gthread-posix.c b/gthread/gthread-posix.c index 31dff711..0dcf6bb7 100644 --- a/gthread/gthread-posix.c +++ b/gthread/gthread-posix.c @@ -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); diff --git a/tests/timeloop-closure.c b/tests/timeloop-closure.c index 176b8109..ecbe2908 100644 --- a/tests/timeloop-closure.c +++ b/tests/timeloop-closure.c @@ -135,7 +135,7 @@ input_callback (GIOChannel *source, } static void -create_child () +create_child (void) { int pid; GIOChannel *in_channels[2]; diff --git a/tests/timeloop.c b/tests/timeloop.c index 4f0a5351..457e74de 100644 --- a/tests/timeloop.c +++ b/tests/timeloop.c @@ -134,7 +134,7 @@ input_callback (GIOChannel *source, } static void -create_child () +create_child (void) { int pid; GIOChannel *in_channels[2]; -- 2.34.1