summaryrefslogtreecommitdiff
path: root/gtk/gtkaccelmap.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-03-20 21:47:01 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-20 21:47:01 +0000
commit8acfd1e9de927adf2bea546bda55740a2b0cc436 (patch)
tree37b5917fa9f5f02d3132d06eb1f1bf7ddab2f5e0 /gtk/gtkaccelmap.c
parent67359a9c01adb1418621678975b496964e8e6843 (diff)
downloadgdk-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/gtkaccelmap.c')
-rw-r--r--gtk/gtkaccelmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkaccelmap.c b/gtk/gtkaccelmap.c
index 9942381f8..3bafd1ce4 100644
--- a/gtk/gtkaccelmap.c
+++ b/gtk/gtkaccelmap.c
@@ -457,7 +457,7 @@ accel_map_parse_statement (GScanner *scanner)
{
guint (*parser_func) (GScanner*);
- parser_func = scanner->value.v_symbol;
+ parser_func = (guint (*) (GScanner *))scanner->value.v_symbol;
expected_token = parser_func (scanner);
}
@@ -512,7 +512,8 @@ gtk_accel_map_load_scanner (GScanner *scanner)
symbol_2_token = scanner->config->symbol_2_token;
scanner->config->symbol_2_token = FALSE;
saved_symbol = g_scanner_lookup_symbol (scanner, "gtk_accel_path");
- g_scanner_scope_add_symbol (scanner, 0, "gtk_accel_path", accel_map_parse_accel_path);
+ g_scanner_scope_add_symbol (scanner, 0, "gtk_accel_path",
+ (gpointer) accel_map_parse_accel_path);
/* outer parsing loop
*/