summaryrefslogtreecommitdiff
path: root/xfd.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-12 15:23:52 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-12 15:23:52 -0800
commit09834f092c6fb5ac4945bfd1b7b5bb228e42e04d (patch)
treec4d873df02aefbd72608c500c2673df47a3a6ad7 /xfd.c
parentd9ba30a6f56b2bb7e6f1b125a3d2eaa871c96eba (diff)
Tag unused arguments to callback functions as _X_UNUSED
Gets rid of 33 -Wunused-parameter warnings from clang Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xfd.c')
-rw-r--r--xfd.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/xfd.c b/xfd.c
index 7df3ae5..5eae374 100644
--- a/xfd.c
+++ b/xfd.c
@@ -344,7 +344,7 @@ main(int argc, char *argv[])
/*ARGSUSED*/
static void
-SelectChar(Widget w, XtPointer closure, XtPointer data)
+SelectChar(Widget w, XtPointer closure _X_UNUSED, XtPointer data)
{
FontGridCharRec *p = (FontGridCharRec *) data;
XFontStruct *fs = p->thefont;
@@ -422,7 +422,8 @@ SelectChar(Widget w, XtPointer closure, XtPointer data)
/*ARGSUSED*/
static void
-do_quit (Widget w, XEvent *event, String *params, Cardinal *num_params)
+do_quit (Widget w _X_UNUSED, XEvent *event _X_UNUSED,
+ String *params _X_UNUSED, Cardinal *num_params _X_UNUSED)
{
exit (0);
}
@@ -489,14 +490,16 @@ set_button_state(void)
/* ARGSUSED */
static void
-do_prev16(Widget w, XEvent *event, String *params, Cardinal *num_params)
+do_prev16(Widget w _X_UNUSED, XEvent *event _X_UNUSED,
+ String *params _X_UNUSED, Cardinal *num_params _X_UNUSED)
{
change_page (-16);
}
static void
-do_prev(Widget w, XEvent *event, String *params, Cardinal *num_params)
+do_prev(Widget w _X_UNUSED, XEvent *event _X_UNUSED,
+ String *params _X_UNUSED, Cardinal *num_params _X_UNUSED)
{
change_page (-1);
}
@@ -504,14 +507,16 @@ do_prev(Widget w, XEvent *event, String *params, Cardinal *num_params)
/* ARGSUSED */
static void
-do_next(Widget w, XEvent *event, String *params, Cardinal *num_params)
+do_next(Widget w _X_UNUSED, XEvent *event _X_UNUSED,
+ String *params _X_UNUSED, Cardinal *num_params _X_UNUSED)
{
change_page (1);
}
/* ARGSUSED */
static void
-do_next16(Widget w, XEvent *event, String *params, Cardinal *num_params)
+do_next16(Widget w _X_UNUSED, XEvent *event _X_UNUSED,
+ String *params _X_UNUSED, Cardinal *num_params _X_UNUSED)
{
change_page (16);
}