diff src/event-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 e8db6a10ad42
children ecf1ebac70d8
line wrap: on
line diff
--- a/src/event-gtk.c	Mon Sep 20 19:11:29 2004 +0000
+++ b/src/event-gtk.c	Mon Sep 20 19:20:08 2004 +0000
@@ -708,7 +708,8 @@
 }
 
 static void
-gtk_what_callback (gpointer closure, gint source, GdkInputCondition why)
+gtk_what_callback (gpointer closure, gint UNUSED (source),
+		   GdkInputCondition UNUSED (why))
 {
   /* If closure is 0, then we got a fake event from a signal handler.
      The only purpose of this is to make XtAppProcessEvent() stop
@@ -850,7 +851,7 @@
    If we've still got pointers to it in this file, we're gonna lose hard.
  */
 void
-debug_process_finalization (struct Lisp_Process *p)
+debug_process_finalization (struct Lisp_Process *UNUSED (p))
 {
 #if 0 /* #### */
   int i;
@@ -968,7 +969,7 @@
 			 gint                x,
 			 gint                y,
 			 GtkSelectionData   *data,
-			 guint               info,
+			 guint               UNUSED (info),
 			 guint               time)
 {
   Lisp_Object event = Fmake_event (Qnil, Qnil);
@@ -1056,10 +1057,10 @@
 }
 
 gboolean
-dragndrop_dropped (GtkWidget *widget,
+dragndrop_dropped (GtkWidget *UNUSED (widget),
 		   GdkDragContext *drag_context,
-		   gint x,
-		   gint y,
+		   gint UNUSED (x),
+		   gint UNUSED (y),
 		   guint time,
 		   gpointer user_data)
 {
@@ -1515,7 +1516,7 @@
 }
 
 gboolean
-emacs_shell_event_handler (GtkWidget *wid /* unused */,
+emacs_shell_event_handler (GtkWidget *UNUSED (wid),
 			   GdkEvent *event,
 			   gpointer closure)
 {
@@ -1598,7 +1599,7 @@
 }
 
 static void
-emacs_gtk_force_event_pending (struct frame* f)
+emacs_gtk_force_event_pending (struct frame* UNUSED (f))
 {
 #if 0
   stderr_out ("Force event pending called on frame %p!\n", f);