From c125d8bac5b1629e36069c13a13919e542dc3a9b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 13 Aug 2022 16:04:06 -0700 Subject: Add cast to clear -Wsign-compare warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ico.c: In function ‘do_ico_window’: ico.c:1084:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (xev.xclient.data.l[0] == wm_delete_window) ^~ Signed-off-by: Alan Coopersmith --- ico.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ico.c b/ico.c index aa9819e..09ecf1e 100644 --- a/ico.c +++ b/ico.c @@ -1081,7 +1081,7 @@ do_ico_window(void *ptr) #ifdef DEBUG printf("thread %x message\n", xthread_self()); #endif - if (xev.xclient.data.l[0] == wm_delete_window) + if ((Atom) xev.xclient.data.l[0] == wm_delete_window) do_it = False; else XBell (dpy, 0); -- cgit v1.2.3