changeset 2311:2200ebac5409

[xemacs-hg @ 2004-09-27 18:39:11 by james] Mark more unused parameters.
author james
date Mon, 27 Sep 2004 18:39:23 +0000
parents f6ea7b737c3d
children ed6535aefb7e
files lwlib/ChangeLog lwlib/lwlib-Xm.c src/ChangeLog src/sysdep.c
diffstat 4 files changed, 39 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/ChangeLog	Sun Sep 26 21:51:50 2004 +0000
+++ b/lwlib/ChangeLog	Mon Sep 27 18:39:23 2004 +0000
@@ -1,3 +1,13 @@
+2004-09-27  Jerry James  <james@xemacs.org>
+
+	* lwlib-Xm.c (xm_update_label):
+	(xm_update_progress):
+	(activate_button):
+	(make_dialog):
+	(mark_dead_instance_destroyed):
+	(xm_nosel_callback):
+	Mark more unused parameters with the UNUSED macro.
+
 2004-09-14  Jerry James  <james@xemacs.org>
 
 	* Makefile.in.in (cppflags): Make compiler.h available.
--- a/lwlib/lwlib-Xm.c	Sun Sep 26 21:51:50 2004 +0000
+++ b/lwlib/lwlib-Xm.c	Mon Sep 27 18:39:23 2004 +0000
@@ -204,7 +204,8 @@
 
 /* update the label of anything subclass of a label */
 static void
-xm_update_label (widget_instance* instance, Widget widget, widget_value* val)
+xm_update_label (widget_instance* UNUSED (instance), Widget widget,
+		 widget_value* val)
 {
   XmString built_string = NULL;
   XmString key_string   = NULL;
@@ -350,8 +351,8 @@
 
 #ifdef LWLIB_WIDGETS_MOTIF
 static void
-xm_update_progress (widget_instance* instance, Widget scale,
-		      widget_value* val)
+xm_update_progress (widget_instance* UNUSED (instance), Widget scale,
+		    widget_value* val)
 {
   Arg al[20];
   int ac = 0;
@@ -1040,7 +1041,8 @@
    I could not find a way to do that with accelerators.
  */
 static void
-activate_button (Widget widget, XtPointer closure, XtPointer call_data)
+activate_button (Widget UNUSED (widget), XtPointer closure,
+		 XtPointer UNUSED (call_data))
 {
   Widget button = (Widget)closure;
   XtCallCallbacks (button, XmNactivateCallback, NULL);
@@ -1098,7 +1100,7 @@
 
 
 static Widget
-make_dialog (char* name, Widget parent, Boolean pop_up_p,
+make_dialog (char* UNUSED (name), Widget parent, Boolean pop_up_p,
 	     const char* shell_title, const char* icon_name,
 	     Boolean text_input_slot, Boolean radio_box, Boolean list,
 	     int left_buttons, int right_buttons)
@@ -2209,15 +2211,16 @@
 
 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
 static void
-mark_dead_instance_destroyed (Widget widget, XtPointer closure,
-			      XtPointer call_data)
+mark_dead_instance_destroyed (Widget UNUSED (widget), XtPointer closure,
+			      XtPointer UNUSED (call_data))
 {
   destroyed_instance* instance = (destroyed_instance*)closure;
   instance->widget = NULL;
 }
 
 static void
-xm_nosel_callback (Widget widget, XtPointer closure, XtPointer call_data)
+xm_nosel_callback (Widget widget, XtPointer closure,
+		   XtPointer UNUSED (call_data))
 {
   /* This callback is only called when a dialog box is dismissed with the wm's
      destroy button (WM_DELETE_WINDOW.)  We want the dialog box to be destroyed
--- a/src/ChangeLog	Sun Sep 26 21:51:50 2004 +0000
+++ b/src/ChangeLog	Mon Sep 27 18:39:23 2004 +0000
@@ -1,3 +1,7 @@
+2004-09-27  Jerry James  <james@xemacs.org>
+
+	* sysdep.c: Mark more unused parameters with the UNUSED macro.
+
 2004-09-21  Jerry James  <james@xemacs.org>
 
 	* ExternalClient.c: Include compiler.h.
--- a/src/sysdep.c	Sun Sep 26 21:51:50 2004 +0000
+++ b/src/sysdep.c	Mon Sep 27 18:39:23 2004 +0000
@@ -150,7 +150,13 @@
 /* Arrange for character C to be read as the next input from
    the terminal.  */
 void
-stuff_char (struct console *con, int c)
+stuff_char (struct console *con,
+#ifdef TIOCSTI
+	    int c
+#else
+	    int UNUSED (c)
+#endif
+	    )
 {
   int input_fd;
 
@@ -169,7 +175,13 @@
 #endif /* HAVE_TTY */
 
 void
-set_exclusive_use (int fd)
+set_exclusive_use (
+#ifdef FIOCLEX
+		   int fd
+#else
+		   int UNUSED (fd)
+#endif
+		   )
 {
 #ifdef FIOCLEX
   ioctl (fd, FIOCLEX, 0);