diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-09-26 17:47:35 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-09-26 17:51:44 -0700 |
commit | 133e08eb45fcff0c8d39e38babb979e1f1c0c2e3 (patch) | |
tree | 3b0065007dd22a4f152912c76019ab9d267aeecb | |
parent | 88ec82664a95715bf6958462ad810e2da077394c (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>
-rw-r--r-- | xmore.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); } |