From 74a71638ace07252e85106d87f80a62b1f07280f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 1 Jun 2019 17:33:44 -0700 Subject: Fix -Wsign-compare warning in quit() function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by gcc 7.3: actions.c: In function ‘quit’: actions.c:414:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ev->type == ClientMessage && ev->xclient.data.l[0] != wm_delete_window) ^~ Signed-off-by: Alan Coopersmith --- actions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actions.c b/actions.c index 2857f96..6b454da 100644 --- a/actions.c +++ b/actions.c @@ -411,7 +411,8 @@ static void power(Widget w, XEvent *ev, String *vector, Cardinal *count) /*ARGSUSED*/ static void quit(Widget w, XEvent *ev, String *vector, Cardinal *count) { - if (ev->type == ClientMessage && ev->xclient.data.l[0] != wm_delete_window) + if (ev->type == ClientMessage && + ((Atom) ev->xclient.data.l[0]) != wm_delete_window) ringbell(); else Quit(); -- cgit v1.2.3