diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-08 17:56:58 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-18 06:41:26 -0400 |
commit | 43a65ae23370e0f7fb427e96c6d9037d8fa1af35 (patch) | |
tree | 294632a34b0939a8620760e4a9ae8ca68007c747 /src/Event.c | |
parent | 9c45da7cb487b8b6980ff3020468e0fb582bdd7f (diff) |
add casts to quiet compiler warnings with Solaris 11.4 / gcc 7.3.0
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Event.c')
-rw-r--r-- | src/Event.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Event.c b/src/Event.c index 1c7c1a4..efcf37e 100644 --- a/src/Event.c +++ b/src/Event.c @@ -390,7 +390,7 @@ void XtRemoveEventHandler( WIDGET_TO_APPCON(widget); LOCK_APP(app); RemoveEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, - other, proc, closure, FALSE); + (Boolean) other, proc, closure, FALSE); UNLOCK_APP(app); } @@ -403,7 +403,7 @@ void XtAddEventHandler( { WIDGET_TO_APPCON(widget); LOCK_APP(app); - AddEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, other, + AddEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, (Boolean) other, proc, closure, XtListTail, FALSE, FALSE); UNLOCK_APP(app); } @@ -418,7 +418,7 @@ void XtInsertEventHandler( { WIDGET_TO_APPCON(widget); LOCK_APP(app); - AddEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, other, + AddEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, (Boolean) other, proc, closure, position, TRUE, FALSE); UNLOCK_APP(app); } @@ -433,7 +433,7 @@ void XtRemoveRawEventHandler( WIDGET_TO_APPCON(widget); LOCK_APP(app); RemoveEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, - other, proc, closure, TRUE); + (Boolean) other, proc, closure, TRUE); UNLOCK_APP(app); } @@ -447,7 +447,7 @@ void XtInsertRawEventHandler( { WIDGET_TO_APPCON(widget); LOCK_APP(app); - AddEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, other, + AddEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, (Boolean) other, proc, closure, position, TRUE, TRUE); UNLOCK_APP(app); } @@ -461,7 +461,7 @@ void XtAddRawEventHandler( { WIDGET_TO_APPCON(widget); LOCK_APP(app); - AddEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, other, + AddEventHandler(widget, (XtPointer) &eventMask, 0, FALSE, (Boolean) other, proc, closure, XtListTail, FALSE, TRUE); UNLOCK_APP(app); } @@ -1484,7 +1484,7 @@ void XtAddGrab( exclusive = TRUE; } - gl = NewGrabRec(widget, exclusive, spring_loaded); + gl = NewGrabRec(widget, (Boolean) exclusive, (Boolean) spring_loaded); gl->next = *grabListPtr; *grabListPtr = gl; |