# HG changeset patch # User mf0102 <0102@gmx.at> # Date 1196008059 -3600 # Node ID 145966acb0c46a76c9f332aab541b3e52a4fbd36 # Parent f2590691d4b732271026f81699b6b75035ea689b fixed some compilation warnings (was the original programmer on drugs when he wrote that??) diff -r f2590691d4b7 -r 145966acb0c4 src/evdev-plug/ed_ui.c --- a/src/evdev-plug/ed_ui.c Thu Nov 22 15:52:42 2007 +0100 +++ b/src/evdev-plug/ed_ui.c Sun Nov 25 17:27:39 2007 +0100 @@ -25,6 +25,7 @@ #include "ed_bindings_store.h" #include "ed_common.h" #include +#include #include #include @@ -536,7 +537,6 @@ cfg_config_cb_commit ( gpointer cfg_device_lv ) { GList *config_device_list = NULL; - GList *list_iter; GtkTreeModel *model; model = gtk_tree_view_get_model( GTK_TREE_VIEW(cfg_device_lv) ); @@ -757,7 +757,6 @@ case G_IO_IN: { gsize rb = 0; - GError *gerr = NULL; struct input_event inputev; g_io_channel_read_chars( iochan , (gchar*)&inputev , sizeof(struct input_event) , &rb , NULL ); @@ -792,6 +791,9 @@ } } } + + default: + ; } return TRUE; } @@ -802,7 +804,7 @@ { /* check if inputev is already assigned in table */ GList *children = GTK_TABLE(table)->children; - for ( children ; children != NULL ; children = g_list_next(children) ) + for ( ; children != NULL ; children = g_list_next(children) ) { GtkTableChild *child = children->data; @@ -1070,7 +1072,7 @@ for ( i = 0 ; i < bindings_num ; i++ ) { GList *children = GTK_TABLE(bind_table)->children; - for ( children ; children != NULL ; children = g_list_next(children) ) + for ( ; children != NULL ; children = g_list_next(children) ) { GtkTableChild *child = children->data; if ( ( (child->top_attach + 1) == GTK_TABLE(bind_table)->nrows ) && @@ -1082,7 +1084,6 @@ GtkWidget *label = g_object_get_data(G_OBJECT(child->widget),"label"); GtkWidget *delbt = g_object_get_data(G_OBJECT(child->widget),"delbt"); GtkTreeModel *combomodel; - GtkTreeIter comboiter; combosas_helper_t *combosas_helper; gchar *input_str; @@ -1235,7 +1236,7 @@ array_actioncode = calloc( table->nrows - 1 , sizeof(gint) ); array_inputevent = calloc( table->nrows - 1 , sizeof(ed_inputevent_t*) ); - for ( children ; children != NULL ; children = g_list_next( children ) ) + for ( ; children != NULL ; children = g_list_next( children ) ) { /* pick information from relevant table cells and put them in arrays */ GtkTableChild *child = children->data;