summaryrefslogtreecommitdiff
path: root/src/Keyboard.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-07 12:13:17 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-07 12:14:27 -0400
commit61df064c511bb93b49a67a2d2b3c4886d650eeda (patch)
tree8c08b6978bd43852c411353de1d1e1507e8a9288 /src/Keyboard.c
parent1229be61dabfcbba555ec34fd43da21e94ed7f06 (diff)
downloadxorg-lib-libXt-61df064c511bb93b49a67a2d2b3c4886d650eeda.tar.gz
use _X_UNUSED to quiet compiler warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Keyboard.c')
-rw-r--r--src/Keyboard.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Keyboard.c b/src/Keyboard.c
index 7697275..6c8992d 100644
--- a/src/Keyboard.c
+++ b/src/Keyboard.c
@@ -502,7 +502,7 @@ void _XtHandleFocus(
Widget widget,
XtPointer client_data, /* child who wants focus */
XEvent *event,
- Boolean *cont) /* unused */
+ Boolean *cont _X_UNUSED)
{
XtPerDisplayInput pdi = _XtGetPerDisplayInput(XtDisplay(widget));
XtPerWidgetInput pwi = (XtPerWidgetInput)client_data;
@@ -716,8 +716,8 @@ static void AddFocusHandler(
static void QueryEventMask(
Widget widget, /* child who gets focus */
XtPointer client_data, /* ancestor giving it */
- XEvent *event,
- Boolean *cont) /* unused */
+ XEvent *event _X_UNUSED,
+ Boolean *cont _X_UNUSED)
{
/* widget was once the target of an XtSetKeyboardFocus but
* was unrealized at the time. Make sure ancestor still wants
@@ -747,9 +747,9 @@ static void QueryEventMask(
/* ARGSUSED */
static void FocusDestroyCallback(
- Widget widget,
+ Widget widget _X_UNUSED,
XtPointer closure, /* Widget */
- XtPointer call_data)
+ XtPointer call_data _X_UNUSED)
{
XtSetKeyboardFocus((Widget)closure, NULL);
}