summaryrefslogtreecommitdiff
path: root/xmore.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-09-26 17:47:35 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-09-26 17:51:44 -0700
commit133e08eb45fcff0c8d39e38babb979e1f1c0c2e3 (patch)
tree3b0065007dd22a4f152912c76019ab9d267aeecb /xmore.c
parent88ec82664a95715bf6958462ad810e2da077394c (diff)
Handle clang -Wunused-parameter warnings
xmore.c:117:31: warning: unused parameter 'event' [-Wunused-parameter] quitAction(Widget w, XEvent *event, String *params, Cardinal *num_params) ^ xmore.c:117:46: warning: unused parameter 'params' [-Wunused-parameter] quitAction(Widget w, XEvent *event, String *params, Cardinal *num_params) ^ xmore.c:117:64: warning: unused parameter 'num_params' [-Wunused-parameter] quitAction(Widget w, XEvent *event, String *params, Cardinal *num_params) ^ xmore.c:123:32: warning: unused parameter 'client_data' [-Wunused-parameter] quitXtProc(Widget w, XtPointer client_data, XtPointer callData) ^ xmore.c:123:55: warning: unused parameter 'callData' [-Wunused-parameter] quitXtProc(Widget w, XtPointer client_data, XtPointer callData) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xmore.c')
-rw-r--r--xmore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmore.c b/xmore.c
index 0d86e49..3f48923 100644
--- a/xmore.c
+++ b/xmore.c
@@ -114,13 +114,15 @@ static String fallback_resources[] = {
};
static void
-quitAction(Widget w, XEvent *event, String *params, Cardinal *num_params)
+quitAction(Widget w, _X_UNUSED XEvent *event,
+ _X_UNUSED String *params, _X_UNUSED Cardinal *num_params)
{
XtAppSetExitFlag(XtWidgetToApplicationContext(w));
}
static void
-quitXtProc(Widget w, XtPointer client_data, XtPointer callData)
+quitXtProc(Widget w, _X_UNUSED XtPointer client_data,
+ _X_UNUSED XtPointer callData)
{
XtCallActionProc(w, "quit", NULL, NULL, 0);
}