add uint* -> int* casts in g_atomic_int calls to avoid gcc warnings

* gobject.c (g_object_ref, g_object_unref)
	(g_object_freeze_notify, g_object_notify, g_object_thaw_notify):
	* gparam.c (g_param_spec_ref, g_param_spec_unref):
	* gsignal.c (handler_ref, handler_unref_R): add uint* -> int*
	casts in g_atomic_int calls to avoid gcc warnings

svn path=/trunk/; revision=7551
This commit is contained in:
Dan Winship
2008-09-26 16:00:33 +00:00
parent 5360907e9e
commit 7afe2bb07a
4 changed files with 21 additions and 13 deletions

View File

@@ -578,7 +578,7 @@ handler_ref (Handler *handler)
{
g_return_if_fail (handler->ref_count > 0);
g_atomic_int_inc (&handler->ref_count);
g_atomic_int_inc ((int *)&handler->ref_count);
}
static inline void
@@ -590,7 +590,7 @@ handler_unref_R (guint signal_id,
g_return_if_fail (handler->ref_count > 0);
is_zero = g_atomic_int_dec_and_test (&handler->ref_count);
is_zero = g_atomic_int_dec_and_test ((int *)&handler->ref_count);
if (G_UNLIKELY (is_zero))
{