mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +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:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user