Mercurial > hg > xemacs-beta
diff src/frame-gtk.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | 61855263cb07 |
children | 3d8143fc88e1 |
line wrap: on
line diff
--- a/src/frame-gtk.c Mon Sep 20 19:11:29 2004 +0000 +++ b/src/frame-gtk.c Mon Sep 20 19:20:08 2004 +0000 @@ -307,7 +307,7 @@ individual properties. */ static void -gtk_set_frame_text_value (struct frame *f, Ibyte *value, +gtk_set_frame_text_value (struct frame *UNUSED (f), Ibyte *value, void (*func) (gpointer, gchar *), gpointer arg) { @@ -642,7 +642,8 @@ } static gboolean -resize_event_cb (GtkWidget *w, GtkAllocation *allocation, gpointer user_data) +resize_event_cb (GtkWidget *UNUSED (w), GtkAllocation *allocation, + gpointer user_data) { struct frame *f = (struct frame *) user_data; @@ -660,7 +661,8 @@ } static gboolean -delete_event_cb (GtkWidget *w, GdkEvent *ev, gpointer user_data) +delete_event_cb (GtkWidget *UNUSED (w), GdkEvent *UNUSED (ev), + gpointer user_data) { struct frame *f = (struct frame *) user_data; Lisp_Object frame = wrap_frame (f); @@ -713,12 +715,12 @@ #define DRAG_SELECTION_DATA_ERROR "Error converting drag data to external format" static void -dragndrop_get_drag (GtkWidget *widget, - GdkDragContext *drag_context, +dragndrop_get_drag (GtkWidget *UNUSED (widget), + GdkDragContext *UNUSED (drag_context), GtkSelectionData *data, guint info, - guint time, - gpointer user_data) + guint UNUSED (time), + gpointer UNUSED (user_data)) { gtk_selection_data_set (data, GDK_SELECTION_TYPE_STRING, 8, DRAG_SELECTION_DATA_ERROR, @@ -993,7 +995,7 @@ static void gtk_init_frame_1 (struct frame *f, Lisp_Object props, - int frame_name_is_defaulted) + int UNUSED (frame_name_is_defaulted)) { /* This function can GC */ Lisp_Object initially_unmapped; @@ -1036,7 +1038,7 @@ } static void -gtk_init_frame_2 (struct frame *f, Lisp_Object props) +gtk_init_frame_2 (struct frame *f, Lisp_Object UNUSED (props)) { /* Set up the values of the widget/frame. A case could be made for putting this inside of the widget's initialize method. */