diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-01 17:33:44 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-01 17:34:59 -0700 |
commit | 74a71638ace07252e85106d87f80a62b1f07280f (patch) | |
tree | f781bdc28f72f5611c264a26f37c879deb218067 | |
parent | 012115650d15697e1cdc13edf770ac9775b108f4 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |