# HG changeset patch # User james # Date 1096310363 0 # Node ID 2200ebac54090abd955cf6fdaf4e66fbe0cbc8eb # Parent f6ea7b737c3d6a6ba2b87b0c00690106f6269b0e [xemacs-hg @ 2004-09-27 18:39:11 by james] Mark more unused parameters. diff -r f6ea7b737c3d -r 2200ebac5409 lwlib/ChangeLog --- 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 + + * 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 * Makefile.in.in (cppflags): Make compiler.h available. diff -r f6ea7b737c3d -r 2200ebac5409 lwlib/lwlib-Xm.c --- 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 diff -r f6ea7b737c3d -r 2200ebac5409 src/ChangeLog --- 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 + + * sysdep.c: Mark more unused parameters with the UNUSED macro. + 2004-09-21 Jerry James * ExternalClient.c: Include compiler.h. diff -r f6ea7b737c3d -r 2200ebac5409 src/sysdep.c --- 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);