From 133e08eb45fcff0c8d39e38babb979e1f1c0c2e3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 26 Sep 2023 17:47:35 -0700 Subject: 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 --- xmore.c | 6 ++++-- 1 file 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); } -- cgit v1.2.3