From e916e419d34e0cb197203d93c86ac44e1966c932 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Thu, 25 Jan 2018 17:35:53 +0100 Subject: [PATCH] Remove negative NULL-check warning According to the docs in the GSourceFuncs, the timeout_ parameter can be NULL. But when it's NULL, it would be equivalent to an invocation to return -1 as timeout_ and FALSE as return value. This is exactly the same, what we're doing if timeout_ is not NULL. --- src/x11/x.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/x11/x.c b/src/x11/x.c index 8233f3627..2df610b65 100644 --- a/src/x11/x.c +++ b/src/x11/x.c @@ -831,8 +831,6 @@ gboolean x_mainloop_fd_prepare(GSource *source, gint *timeout) { if (timeout) *timeout = -1; - else - LOG_E("x_mainloop_fd_prepare: timeout == NULL"); return false; }