From ffadec783f0526e757aa44033d3531c233c82c4a Mon Sep 17 00:00:00 2001 From: Mario Trangoni Date: Mon, 1 Jan 2018 17:51:31 +0100 Subject: Fix clang error: ordered comparison between pointer and zero ("char *" and "int") --- nxcompshad/src/X11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nxcompshad/src') diff --git a/nxcompshad/src/X11.cpp b/nxcompshad/src/X11.cpp index 3031bde37..8c5dbd5f6 100644 --- a/nxcompshad/src/X11.cpp +++ b/nxcompshad/src/X11.cpp @@ -363,7 +363,7 @@ void Poller::shmInit(void) shminfo_ -> shmaddr = (char *)shmat(shminfo_ -> shmid, 0, 0); - if (shminfo_ -> shmaddr < 0) + if (shminfo_ -> shmaddr < (void *)0) { logWarning("Poller::shmInit", "Couldn't attach to shm segment."); } -- cgit v1.2.3