mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 09:58:54 +02:00
glib/gconvert.c glib/gen-unicode-tables.pl fixed cast/type problems to
2002-03-13 Erwann Chenede <erwann.chenede@sun.com> * glib/gconvert.c * glib/gen-unicode-tables.pl * glib/gunidecomp.h : fixed cast/type problems to avoid warnings (with forte compiler) * gobject/gclosure.c * gobject/gobject.c * gobject/gsignal.c: fixed cast problems with function pointer to avoid warnings (with forte compiler) (#73898)
This commit is contained in:
committed by
Erwann Chenede
parent
428704a0b6
commit
738c1cfd6b
@@ -1,3 +1,10 @@
|
||||
2002-03-13 Erwann Chenede <erwann.chenede@sun.com>
|
||||
* gobject/gclosure.c
|
||||
* gobject/gobject.c
|
||||
* gobject/gsignal.c: fixed cast problems with function pointer
|
||||
to avoid warnings (with forte compiler) (#73898)
|
||||
|
||||
|
||||
2002-03-05 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gvaluetransform.c (g_value_transforms_init): don't try to
|
||||
|
@@ -104,7 +104,7 @@ closure_invoke_notifiers (GClosure *closure,
|
||||
register guint n = --closure->n_fnotifiers;
|
||||
|
||||
ndata = closure->notifiers + CLOSURE_N_MFUNCS (closure) + n;
|
||||
closure->marshal = (gpointer) ndata->notify;
|
||||
closure->marshal = (GClosureMarshal) ndata->notify;
|
||||
closure->data = ndata->data;
|
||||
ndata->notify (ndata->data, closure);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ closure_invoke_notifiers (GClosure *closure,
|
||||
register guint n = --closure->n_inotifiers;
|
||||
|
||||
ndata = closure->notifiers + CLOSURE_N_MFUNCS (closure) + closure->n_fnotifiers + n;
|
||||
closure->marshal = (gpointer) ndata->notify;
|
||||
closure->marshal = (GClosureMarshal) ndata->notify;
|
||||
closure->data = ndata->data;
|
||||
ndata->notify (ndata->data, closure);
|
||||
}
|
||||
@@ -472,7 +472,7 @@ g_cclosure_new (GCallback callback_func,
|
||||
closure = g_closure_new_simple (sizeof (GCClosure), user_data);
|
||||
if (destroy_data)
|
||||
g_closure_add_finalize_notifier (closure, user_data, destroy_data);
|
||||
((GCClosure*) closure)->callback = callback_func;
|
||||
((GCClosure*) closure)->callback = (gpointer) callback_func;
|
||||
|
||||
return closure;
|
||||
}
|
||||
@@ -489,7 +489,7 @@ g_cclosure_new_swap (GCallback callback_func,
|
||||
closure = g_closure_new_simple (sizeof (GCClosure), user_data);
|
||||
if (destroy_data)
|
||||
g_closure_add_finalize_notifier (closure, user_data, destroy_data);
|
||||
((GCClosure*) closure)->callback = callback_func;
|
||||
((GCClosure*) closure)->callback = (gpointer) callback_func;
|
||||
closure->derivative_flag = TRUE;
|
||||
|
||||
return closure;
|
||||
|
@@ -1168,7 +1168,7 @@ g_object_disconnect (gpointer _object,
|
||||
g_warning ("%s: invalid signal name \"%s\"", G_STRLOC, signal_spec);
|
||||
else if (!g_signal_handlers_disconnect_matched (object, mask | (detail ? G_SIGNAL_MATCH_DETAIL : 0),
|
||||
sid, detail,
|
||||
NULL, callback, data))
|
||||
NULL, (gpointer)callback, data))
|
||||
g_warning (G_STRLOC ": signal handler %p(%p) is not connected", callback, data);
|
||||
signal_spec = va_arg (var_args, gchar*);
|
||||
}
|
||||
|
@@ -829,7 +829,7 @@ g_signal_add_emission_hook (guint signal_id,
|
||||
}
|
||||
hook = g_hook_alloc (node->emission_hooks);
|
||||
hook->data = hook_data;
|
||||
hook->func = hook_func;
|
||||
hook->func = (gpointer) hook_func;
|
||||
hook->destroy = data_destroy;
|
||||
signal_hook = SIGNAL_HOOK (hook);
|
||||
signal_hook->detail = detail;
|
||||
@@ -2298,7 +2298,7 @@ signal_emit_unlocked_R (SignalNode *node,
|
||||
|
||||
if (!signal_hook->detail || signal_hook->detail == detail)
|
||||
{
|
||||
GSignalEmissionHook hook_func = hook->func;
|
||||
GSignalEmissionHook hook_func = (GSignalEmissionHook) hook->func;
|
||||
|
||||
was_in_call = G_HOOK_IN_CALL (hook);
|
||||
hook->flags |= G_HOOK_FLAG_IN_CALL;
|
||||
|
Reference in New Issue
Block a user