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

@@ -201,7 +201,7 @@ g_param_spec_ref (GParamSpec *pspec)
g_return_val_if_fail (G_IS_PARAM_SPEC (pspec), NULL);
g_return_val_if_fail (pspec->ref_count > 0, NULL);
g_atomic_int_inc (&pspec->ref_count);
g_atomic_int_inc ((int *)&pspec->ref_count);
return pspec;
}
@@ -220,7 +220,7 @@ g_param_spec_unref (GParamSpec *pspec)
g_return_if_fail (G_IS_PARAM_SPEC (pspec));
g_return_if_fail (pspec->ref_count > 0);
is_zero = g_atomic_int_dec_and_test (&pspec->ref_count);
is_zero = g_atomic_int_dec_and_test ((int *)&pspec->ref_count);
if (G_UNLIKELY (is_zero))
{