diff lwlib/lwlib-Xm.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 60c5c2f74650
children 2200ebac5409
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Mon Sep 20 19:11:29 2004 +0000
+++ b/lwlib/lwlib-Xm.c	Mon Sep 20 19:20:08 2004 +0000
@@ -74,9 +74,9 @@
 						XtPointer);
 /* static void xm_pop_down_callback (Widget, XtPointer, XtPointer); */
 static void xm_generic_callback (Widget, XtPointer, XtPointer);
+#if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
 static void mark_dead_instance_destroyed (Widget widget, XtPointer closure,
 					  XtPointer call_data);
-#if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
 static void xm_nosel_callback (Widget, XtPointer, XtPointer);
 #endif
 #ifdef LWLIB_SCROLLBARS_MOTIF
@@ -339,7 +339,7 @@
 /* update of buttons */
 static void
 xm_update_pushbutton (widget_instance* instance, Widget widget,
-		      widget_value* val)
+		      widget_value* UNUSED (val))
 {
   Arg al [1];
   XtSetArg (al [0], XmNalignment, XmALIGNMENT_CENTER);
@@ -828,7 +828,13 @@
 
 void
 xm_update_one_widget (widget_instance* instance, Widget widget,
-		      widget_value* val, Boolean deep_p)
+		      widget_value* val,
+#ifdef LWLIB_MENUBARS_MOTIF
+		      Boolean deep_p
+#else
+		      Boolean UNUSED (deep_p)
+#endif
+		      )
 {
   WidgetClass class_;
   Arg al [20];
@@ -1873,7 +1879,13 @@
 
 /* Destruction of instances */
 void
-xm_destroy_instance (widget_instance* instance)
+xm_destroy_instance (
+#if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
+		     widget_instance* instance
+#else
+		     widget_instance* UNUSED (instance)
+#endif
+		     )
 {
 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
   /* It appears that this is used only for dialog boxes. */
@@ -2223,7 +2235,7 @@
 
 /* set the keyboard focus */
 void
-xm_set_keyboard_focus (Widget parent, Widget w)
+xm_set_keyboard_focus (Widget UNUSED (parent), Widget w)
 {
   XmProcessTraversal (w, XmTRAVERSE_CURRENT);
   /* At some point we believed that it was necessary to use XtSetKeyboardFocus