mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
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:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user