summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-13 16:25:03 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-13 16:25:03 -0700
commitf6a658deeac58d170c3fef1d785d723a6d830119 (patch)
tree52b8c1fd7d127acbb735639c6a3bdd9553ea8f4d
parent6d55831ae7d1c27a6f4851449b830c248b693bfe (diff)
Add cast to clear -Wsign-compare warning
oclock.c: In function ‘quit’: oclock.c:157:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] event->xclient.data.l[0] != wm_delete_window) { ^~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--oclock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/oclock.c b/oclock.c
index 37df634..24098a9 100644
--- a/oclock.c
+++ b/oclock.c
@@ -154,7 +154,7 @@ static void quit(Widget w, XEvent *event, String *params, Cardinal *num_params)
Arg arg;
if (event->type == ClientMessage &&
- event->xclient.data.l[0] != wm_delete_window) {
+ (Atom)event->xclient.data.l[0] != wm_delete_window) {
#ifdef XKB
XkbStdBell(XtDisplay(w), XtWindow(w), 0, XkbBI_BadValue);
#else