[X2Go-Commits] [nx-libs] 04/08: Fix clang error: ordered comparison between pointer and zero ("char *" and "int")

git-admin at x2go.org git-admin at x2go.org
Mon Mar 5 23:34:05 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x-rpm-debug
in repository nx-libs.

commit ffadec783f0526e757aa44033d3531c233c82c4a
Author: Mario Trangoni <mjtrangoni at gmail.com>
Date:   Mon Jan 1 17:51:31 2018 +0100

    Fix clang error: ordered comparison between pointer and zero ("char *" and "int")
---
 nxcompshad/src/X11.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nxcompshad/src/X11.cpp b/nxcompshad/src/X11.cpp
index 3031bde..8c5dbd5 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.");
     }

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list