summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-01 17:33:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-01 17:34:59 -0700
commit74a71638ace07252e85106d87f80a62b1f07280f (patch)
treef781bdc28f72f5611c264a26f37c879deb218067
parent012115650d15697e1cdc13edf770ac9775b108f4 (diff)
Fix -Wsign-compare warning in quit() function
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 <alan.coopersmith@oracle.com>
-rw-r--r--actions.c3
1 files changed, 2 insertions, 1 deletions
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();