From f6a658deeac58d170c3fef1d785d723a6d830119 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 13 Aug 2022 16:25:03 -0700 Subject: Add cast to clear -Wsign-compare warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- oclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3