aboutsummaryrefslogtreecommitdiff
path: root/nxcompshad/src
diff options
context:
space:
mode:
authorMario Trangoni <mjtrangoni@gmail.com>2018-01-01 17:51:31 +0100
committerMario Trangoni <mjtrangoni@gmail.com>2018-03-01 20:56:13 +0100
commitffadec783f0526e757aa44033d3531c233c82c4a (patch)
tree3caa72b0af1d1ad31d5061dd1059ffe5bad9407f /nxcompshad/src
parentd14d5838b6c10388d9b8fd320721536ed72d3c8d (diff)
downloadnx-libs-ffadec783f0526e757aa44033d3531c233c82c4a.tar.gz
nx-libs-ffadec783f0526e757aa44033d3531c233c82c4a.tar.bz2
nx-libs-ffadec783f0526e757aa44033d3531c233c82c4a.zip
Fix clang error: ordered comparison between pointer and zero ("char *" and "int")
Diffstat (limited to 'nxcompshad/src')
-rw-r--r--nxcompshad/src/X11.cpp2
1 files changed, 1 insertions, 1 deletions
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.");
}