summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2008-07-18 18:27:30 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2008-07-18 18:27:30 +0000
commitba7fd7e09cda9a1a9869f774ca1ad006fa9c5717 (patch)
tree4c743603ba18d8e9688d7d5af6d22fa930277d84 /gdk-pixbuf
parentbc66999dfbf7e10f2e50e16556731202cbc8134c (diff)
downloadgdk-pixbuf-ba7fd7e09cda9a1a9869f774ca1ad006fa9c5717.tar.gz
Don't do funny casts to avoid compiler warnings
2008-07-18 Federico Mena Quintero <federico@novell.com> * demos/gtk-demo/changedisplay.c (find_toplevel_at_pointer): Don't do funny casts to avoid compiler warnings. * demos/gtk-demo/textview.c (easter_egg_callback): Likewise. * gtk/gtkmain.c (rewrite_event_for_grabs, gtk_get_event_widget): Likewise. * gtk/gtkmodules.c (load_module): Likewise. * gtk/gtkselection.c (gtk_selection_convert): Likewise. * gtk/gtktipsquery.c (gtk_tips_query_event): Likewise. * gtk/queryimmodules.c (query_module): Likewise. * tests/testgtk.c (create_gridded_geometry, create_key_lookup) (find_widget_at_pointer): Likewise. Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=20862
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/queryloaders.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c
index acb19fa36..e0850f715 100644
--- a/gdk-pixbuf/queryloaders.c
+++ b/gdk-pixbuf/queryloaders.c
@@ -153,6 +153,8 @@ query_module (const char *dir, const char *file)
GModule *module;
void (*fill_info) (GdkPixbufFormat *info);
void (*fill_vtable) (GdkPixbufModule *module);
+ gpointer fill_info_ptr;
+ gpointer fill_vtable_ptr;
if (g_path_is_absolute (file))
path = g_strdup (file);
@@ -161,8 +163,8 @@ query_module (const char *dir, const char *file)
module = g_module_open (path, 0);
if (module &&
- g_module_symbol (module, "fill_info", (gpointer *) &fill_info) &&
- g_module_symbol (module, "fill_vtable", (gpointer *) &fill_vtable)) {
+ g_module_symbol (module, "fill_info", &fill_info_ptr) &&
+ g_module_symbol (module, "fill_vtable", &fill_vtable_ptr)) {
GdkPixbufFormat *info;
GdkPixbufModule *vtable;
@@ -184,6 +186,9 @@ query_module (const char *dir, const char *file)
vtable->module = module;
+ fill_info = fill_info_ptr;
+ fill_vtable = fill_vtable_ptr;
+
(*fill_info) (info);
(*fill_vtable) (vtable);