diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-03-20 21:47:01 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-03-20 21:47:01 +0000 |
commit | 8acfd1e9de927adf2bea546bda55740a2b0cc436 (patch) | |
tree | 37b5917fa9f5f02d3132d06eb1f1bf7ddab2f5e0 /gtk/gtkmain.c | |
parent | 67359a9c01adb1418621678975b496964e8e6843 (diff) | |
download | gdk-pixbuf-8acfd1e9de927adf2bea546bda55740a2b0cc436.tar.gz |
Patch from Erwann Chenede, #73900 fixing a lot of warnings with Forte CC,
Wed Mar 20 16:36:08 2002 Owen Taylor <otaylor@redhat.com>
* gtk/*.c: Patch from Erwann Chenede, #73900 fixing
a lot of warnings with Forte CC, mostly implicit
casts between void * and function pointers.
* gdk/gdkevents.c (gdk_event_get_state): GdkEventVisibility's
state field is not a GdkModifierType. (Also #73900)
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index e6396498a..11bbe873f 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -489,10 +489,11 @@ load_module (GSList *gtk_modules, g_module_symbol (module, "gtk_module_init", (gpointer *) &modinit_func) && modinit_func) { - if (!g_slist_find (gtk_modules, modinit_func)) + if (!g_slist_find (gtk_modules, (gconstpointer) modinit_func)) { g_module_make_resident (module); - gtk_modules = g_slist_prepend (gtk_modules, modinit_func); + gtk_modules = g_slist_prepend (gtk_modules, + (gpointer) modinit_func); } else { @@ -762,7 +763,7 @@ gtk_init_check (int *argc, { GtkModuleInitFunc modinit; - modinit = slist->data; + modinit = (GtkModuleInitFunc) slist->data; modinit (argc, argv); } } |