From 5c28b6eeb241162894999aa36b335eb2441b2c1e Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 1 Jun 2019 19:41:25 -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: xbiff.c: In function ‘quit’: xbiff.c:55:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] event->xclient.data.l[0] != wm_delete_window) { ^ Signed-off-by: Alan Coopersmith --- xbiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbiff.c b/xbiff.c index a5ecdef..5fcdb51 100644 --- a/xbiff.c +++ b/xbiff.c @@ -52,7 +52,7 @@ static Atom wm_delete_window; static void quit (Widget w, XEvent *event, String *params, Cardinal *num_params) { if (event->type == ClientMessage && - event->xclient.data.l[0] != wm_delete_window) { + ((Atom) event->xclient.data.l[0]) != wm_delete_window) { XBell (XtDisplay(w), 0); return; } -- cgit v1.2.3